Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9575/0.9575, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.288e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.00946/0.009473, allocations: 11.37 MB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006651/0.01612, allocations: 3.544 MB / 287.8 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009583/0.01708, allocations: 87.44 kB / 287.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.01876, allocations: 0.846 MB / 288.8 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002126/0.02089, allocations: 1.013 MB / 289.8 MB, free: 492 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008334/0.02172, allocations: 443.3 kB / 290.2 MB, free: 48 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1079/0.1296, allocations: 3.887 MB / 294.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001983/0.1316, allocations: 1.553 MB / 295.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.1348, allocations: 2.561 MB / 298.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002524/0.1373, allocations: 1.876 MB / 300.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000858/0.1382, allocations: 411.4 kB / 300.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000862/0.139, allocations: 495.2 kB / 301 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007495/0.1398, allocations: 1.24 MB / 302.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.1412, allocations: 1.346 MB / 303.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002109/0.1433, allocations: 3.15 MB / 306.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1433, allocations: 0 / 306.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1433, allocations: 0.8438 kB / 306.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.761e-05/0.1434, allocations: 2.812 kB / 306.7 MB, free: 11.81 MB / 266.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.003975/0.1474, allocations: 4.019 MB / 310.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1474, allocations: 14.58 kB / 310.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007366/0.1481, allocations: 0.6433 MB / 311.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.1498, allocations: 1.907 MB / 313.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.53e-05/0.1498, allocations: 213.1 kB / 313.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.15, allocations: 284.4 kB / 313.8 MB, free: 6.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.1524, allocations: 2.533 MB / 316.3 MB, free: 3.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/0.1525, allocations: 11.7 kB / 316.3 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.1526, allocations: 123.7 kB / 316.5 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.139e-05/0.1527, allocations: 125.5 kB / 316.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.1544, allocations: 1.06 MB / 317.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008657/0.163, allocations: 9.926 MB / 327.6 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.1642, allocations: 1.098 MB / 328.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008999/0.1651, allocations: 0.6647 MB / 329.3 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.1653, allocations: 57.28 kB / 329.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.1653, allocations: 50.7 kB / 329.4 MB, free: 6.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.086e-06/0.1653, allocations: 0 / 329.4 MB, free: 6.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.005683/0.171, allocations: 3.853 MB / 333.3 MB, free: 2.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.1711, allocations: 72.66 kB / 333.4 MB, free: 2.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.1726, allocations: 1.676 MB / 335 MB, free: 1.121 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.828e-05/0.1727, allocations: 53.45 kB / 335.1 MB, free: 1.066 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007614/0.1735, allocations: 1.517 MB / 336.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000298/0.1738, allocations: 0.5454 MB / 337.2 MB, free: 15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003559/0.1741, allocations: 369.1 kB / 337.5 MB, free: 14.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1742, allocations: 476.8 kB / 338 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.1747, allocations: 271.8 kB / 338.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007602/0.1754, allocations: 0.9815 MB / 339.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1767, allocations: 1.396 MB / 340.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.1767, allocations: 8 kB / 340.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002392/0.1791, allocations: 1.859 MB / 342.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1791, allocations: 12 kB / 342.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.1792, allocations: 16 kB / 342.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.1805, allocations: 0.6163 MB / 343.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006349/0.1811, allocations: 344.3 kB / 343.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/0.1902, allocations: 21.72 MB / 365.2 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000609/0.1908, allocations: 87.89 kB / 365.3 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-05/0.1909, allocations: 80.03 kB / 365.4 MB, free: 1.113 MB / 314.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%), (1,2,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.0004656/0.1913, allocations: 272.4 kB / 365.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.1916, allocations: 262.7 kB / 365.9 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.1933, allocations: 1.386 MB / 367.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1933, allocations: 19.94 kB / 367.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.1933, allocations: 12 kB / 367.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1933, allocations: 11.91 kB / 367.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.1977, allocations: 3.95 MB / 371.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1977, allocations: 4 kB / 371.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.1981, allocations: 201.8 kB / 371.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.1992, allocations: 0.5168 MB / 372 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.1992, allocations: 35.98 kB / 372 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008591/0.2078, allocations: 19.01 MB / 391 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.2078, allocations: 4 kB / 391 MB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.2103, allocations: 1.994 MB / 393 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.2109, allocations: 366.6 kB / 393.4 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.211, allocations: 39.92 kB / 393.4 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/0.2115, allocations: 103.9 kB / 393.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.2118, allocations: 132.6 kB / 393.6 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-05/0.2118, allocations: 44 kB / 393.7 MB, free: 3.414 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001/0.2128, allocations: 0.9389 MB / 394.6 MB, free: 2.488 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2128, allocations: 4 kB / 394.6 MB, free: 2.484 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001666/0.2145, allocations: 0.6562 MB / 395.3 MB, free: 1.828 MB / 346.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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003073/0.2148, allocations: 200.2 kB / 395.5 MB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002368/0.2172, allocations: 3.01 MB / 398.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.2172, allocations: 2 kB / 398.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.2185, allocations: 2.288 MB / 400.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.2199, allocations: 0.6192 MB / 401.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005469/0.2253, allocations: 4.935 MB / 406.3 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006364/0.226, allocations: 0.7983 MB / 407.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007009/0.2267, allocations: 397.5 kB / 407.5 MB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.2269, allocations: 124.5 kB / 407.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.2269, allocations: 0 / 407.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of Templates: time 0.1455/0.3724, allocations: 39.55 MB / 447.2 MB, free: 108.5 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6759572559967637]