Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 92.59 kB / 20.96 MB, free: 3.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002243/0.002243, allocations: 149.4 kB / 24.25 MB, free: 160 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.519e-05/3.718e-05, allocations: 6.25 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01864/0.01868, allocations: 10.04 MB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009499/0.02818, allocations: 3.384 MB / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.02957, allocations: 83.44 kB / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.03213, allocations: 0.8305 MB / 281.7 MB, free: 8.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002948/0.03508, allocations: 1.013 MB / 282.7 MB, free: 7.281 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.0362, allocations: 447.3 kB / 283.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005795/0.042, allocations: 3.862 MB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003056/0.04505, allocations: 1.553 MB / 288.5 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1146/0.1597, allocations: 2.451 MB / 291 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002761/0.1624, allocations: 1.741 MB / 292.7 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006467/0.1631, allocations: 421.3 kB / 293.1 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.1641, allocations: 0.4942 MB / 293.6 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.1652, allocations: 1.245 MB / 294.9 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001849/0.1671, allocations: 1.34 MB / 296.2 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005854/0.1729, allocations: 5.631 MB / 301.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1729, allocations: 0 / 301.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1729, allocations: 2.062 kB / 301.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001346/0.1731, allocations: 0 / 301.9 MB, free: 16.54 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.008044/0.1811, allocations: 3.801 MB / 305.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1811, allocations: 10.58 kB / 305.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.1824, allocations: 0.6351 MB / 306.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003092/0.1855, allocations: 2.089 MB / 308.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.1856, allocations: 212.6 kB / 308.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003628/0.186, allocations: 292.4 kB / 308.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00545/0.1914, allocations: 4.158 MB / 313 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-05/0.1915, allocations: 7.141 kB / 313.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/0.1918, allocations: 121.7 kB / 313.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.937e-05/0.1919, allocations: 123.9 kB / 313.3 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004387/0.1963, allocations: 3.242 MB / 316.5 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/0.2132, allocations: 10.53 MB / 327.1 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.2163, allocations: 1.731 MB / 328.8 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002416/0.2187, allocations: 1.157 MB / 329.9 MB, free: 9.242 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/0.219, allocations: 56.02 kB / 330 MB, free: 9.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.327e-05/0.219, allocations: 51.88 kB / 330.1 MB, free: 9.129 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.517e-06/0.219, allocations: 0 / 330.1 MB, free: 9.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.01751/0.2366, allocations: 6.566 MB / 336.6 MB, free: 2.566 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.2366, allocations: 72.72 kB / 336.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004103/0.2407, allocations: 1.896 MB / 338.6 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002483/0.241, allocations: 49.7 kB / 338.6 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001479/0.2424, allocations: 1.408 MB / 340 MB, free: 15.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007207/0.2432, allocations: 0.532 MB / 340.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007975/0.244, allocations: 343.4 kB / 340.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.2441, allocations: 301.1 kB / 341.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/0.2458, allocations: 0.8705 MB / 342.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002199/0.248, allocations: 1.368 MB / 343.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/0.2519, allocations: 2.329 MB / 345.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.2519, allocations: 4 kB / 345.8 MB, free: 9.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007117/0.2591, allocations: 3.259 MB / 349 MB, free: 5.855 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.2591, allocations: 15.98 kB / 349 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/0.2591, allocations: 16 kB / 349.1 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.2627, allocations: 0.996 MB / 350.1 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.264, allocations: 345.7 kB / 350.4 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02237/0.2864, allocations: 19.14 MB / 369.5 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.2883, allocations: 99.86 kB / 369.6 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003146/0.2886, allocations: 77.08 kB / 369.7 MB, free: 192 kB / 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%), (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.00223/0.2908, allocations: 0.9381 MB / 370.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008389/0.2917, allocations: 262.6 kB / 370.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005413/0.2971, allocations: 2.527 MB / 373.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.2971, allocations: 15.94 kB / 373.4 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.365e-05/0.2971, allocations: 8 kB / 373.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.2972, allocations: 11.97 kB / 373.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/0.3087, allocations: 5.131 MB / 378.6 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.3087, allocations: 7.984 kB / 378.6 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008459/0.3096, allocations: 190.9 kB / 378.8 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002803/0.3124, allocations: 0.8527 MB / 379.6 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.3125, allocations: 37.73 kB / 379.7 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01954/0.332, allocations: 16.88 MB / 396.6 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.332, allocations: 4 kB / 396.6 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008126/0.3402, allocations: 3.751 MB / 400.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002326/0.3425, allocations: 398.6 kB / 400.7 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008144/0.3433, allocations: 35.98 kB / 400.7 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.345, allocations: 107.9 kB / 400.8 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005035/0.3455, allocations: 145.8 kB / 401 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.3456, allocations: 44 kB / 401 MB, free: 15.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002977/0.3486, allocations: 1.267 MB / 402.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3486, allocations: 0 / 402.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004635/0.3532, allocations: 0.6601 MB / 403 MB, free: 13.91 MB / 362.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.0007565/0.354, allocations: 200.8 kB / 403.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006264/0.3603, allocations: 3.366 MB / 406.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.3603, allocations: 2 kB / 406.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003433/0.3637, allocations: 2.148 MB / 408.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00446/0.3682, allocations: 0.6173 MB / 409.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.3831, allocations: 5.712 MB / 415 MB, free: 1.625 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003949/0.387, allocations: 1.738 MB / 416.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002201/0.3892, allocations: 473.5 kB / 417.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006809/0.3899, allocations: 131.9 kB / 417.3 MB, free: 15.26 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3899, allocations: 0 / 417.3 MB, free: 15.26 MB / 378.7 MB Notification: Performance of Templates: time 0.2007/0.5906, allocations: 37.98 MB / 455.3 MB, free: 115.7 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.8664146069204435]