Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008529/0.0008529, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003961/0.003961, allocations: 160.5 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.877/0.877, allocations: 177.2 MB / 205 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 325.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.464e-05/1.6e-05, allocations: 4.531 kB / 325.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.00752/0.007536, allocations: 10.07 MB / 335.9 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.01106, allocations: 3.408 MB / 339.3 MB, free: 1.848 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004789/0.01154, allocations: 87.38 kB / 339.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.01257, allocations: 0.8422 MB / 340.3 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.01368, allocations: 1.005 MB / 341.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.01411, allocations: 439.3 kB / 341.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002022/0.01613, allocations: 3.89 MB / 345.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.01736, allocations: 1.538 MB / 347.1 MB, free: 9.973 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.01894, allocations: 2.475 MB / 349.6 MB, free: 7.492 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.0202, allocations: 1.746 MB / 351.3 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000289/0.02049, allocations: 420 kB / 351.8 MB, free: 5.332 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004651/0.02096, allocations: 0.492 MB / 352.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000636/0.02159, allocations: 1.246 MB / 353.5 MB, free: 3.59 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009294/0.02252, allocations: 1.345 MB / 354.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003161/0.02568, allocations: 5.636 MB / 360.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.02568, allocations: 0 / 360.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.02569, allocations: 0 / 360.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.475e-05/0.02572, allocations: 0 / 360.5 MB, free: 12.59 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.003801/0.02952, allocations: 3.805 MB / 364.3 MB, free: 8.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.02956, allocations: 8.031 kB / 364.3 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005274/0.03009, allocations: 406.6 kB / 364.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/0.03212, allocations: 2.008 MB / 366.7 MB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.522e-05/0.03221, allocations: 218.1 kB / 366.9 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002598/0.03247, allocations: 288.3 kB / 367.2 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005209/0.03768, allocations: 4.159 MB / 371.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/0.03775, allocations: 11.95 kB / 371.4 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.03801, allocations: 120 kB / 371.5 MB, free: 1.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.03812, allocations: 121.5 kB / 371.6 MB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004905/0.04302, allocations: 3.254 MB / 374.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.05382, allocations: 10.33 MB / 385.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.05541, allocations: 1.739 MB / 386.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.05662, allocations: 1.155 MB / 388.1 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.05677, allocations: 49.28 kB / 388.1 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.05681, allocations: 51.88 kB / 388.2 MB, free: 340 kB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.016e-06/0.05681, allocations: 0 / 388.2 MB, free: 340 kB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.007817/0.06463, allocations: 6.504 MB / 394.7 MB, free: 9.777 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.06466, allocations: 68.72 kB / 394.7 MB, free: 9.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.06642, allocations: 1.904 MB / 396.6 MB, free: 7.797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.238e-05/0.06649, allocations: 53.7 kB / 396.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006359/0.06713, allocations: 1.412 MB / 398.1 MB, free: 6.312 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.06739, allocations: 0.5267 MB / 398.6 MB, free: 5.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003316/0.06773, allocations: 347.4 kB / 399 MB, free: 5.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.957e-05/0.0678, allocations: 305.1 kB / 399.3 MB, free: 5.137 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008465/0.06864, allocations: 0.8705 MB / 400.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.0697, allocations: 1.365 MB / 401.5 MB, free: 2.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.07165, allocations: 2.33 MB / 403.8 MB, free: 152 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.07166, allocations: 4 kB / 403.8 MB, free: 148 kB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003281/0.07494, allocations: 3.18 MB / 407 MB, free: 12.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.07496, allocations: 8 kB / 407 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.07498, allocations: 16.5 kB / 407 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.07617, allocations: 0.8519 MB / 407.9 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.07679, allocations: 335.4 kB / 408.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009809/0.0866, allocations: 19.11 MB / 427.3 MB, free: 7.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007134/0.08731, allocations: 99.81 kB / 427.4 MB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/0.0874, allocations: 76 kB / 427.5 MB, free: 7.285 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001144/0.08855, allocations: 0.9306 MB / 428.4 MB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.08874, allocations: 214.7 kB / 428.6 MB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.09124, allocations: 2.533 MB / 431.2 MB, free: 3.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.09124, allocations: 16 kB / 431.2 MB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.09126, allocations: 8 kB / 431.2 MB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.09127, allocations: 7.969 kB / 431.2 MB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005227/0.09649, allocations: 5.115 MB / 436.3 MB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.0965, allocations: 4 kB / 436.3 MB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.09688, allocations: 195.8 kB / 436.5 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009776/0.09786, allocations: 0.7383 MB / 437.3 MB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.828e-05/0.09793, allocations: 32 kB / 437.3 MB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1553/0.2533, allocations: 16.82 MB / 454.1 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2533, allocations: 6.312 kB / 454.1 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003788/0.2571, allocations: 3.694 MB / 457.8 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.2577, allocations: 402.2 kB / 458.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.2578, allocations: 34.41 kB / 458.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/0.2583, allocations: 105.2 kB / 458.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.2586, allocations: 153.6 kB / 458.5 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.193e-05/0.2586, allocations: 41.12 kB / 458.5 MB, free: 106.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00114/0.2597, allocations: 1.266 MB / 459.8 MB, free: 106.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2597, allocations: 0 / 459.8 MB, free: 106.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001495/0.2612, allocations: 0.6608 MB / 460.5 MB, free: 106.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002951/0.2615, allocations: 204.2 kB / 460.7 MB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.264, allocations: 3.358 MB / 464 MB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.264, allocations: 0 / 464 MB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.2651, allocations: 2.146 MB / 466.2 MB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.2664, allocations: 0.6088 MB / 466.8 MB, free: 101.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.2715, allocations: 5.66 MB / 472.4 MB, free: 96.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000983/0.2725, allocations: 1.697 MB / 474.1 MB, free: 95.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.2727, allocations: 140 kB / 474.3 MB, free: 95.25 MB / 410.7 MB Notification: Performance of SimCode: time 9.81e-07/0.2727, allocations: 0 / 474.3 MB, free: 95.25 MB / 410.7 MB Notification: Performance of Templates: time 0.2361/0.5089, allocations: 188.4 MB / 0.6472 GB, free: 139.2 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.968856126070023]