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.0009165/0.0009165, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009829/0.0009829, allocations: 141.8 kB / 24.89 MB, free: 8.777 MB / 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 0.9581/0.9581, allocations: 173.4 MB / 201.5 MB, free: 8.762 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.793e-06/1.793e-06, allocations: 0 / 268.5 MB, free: 5.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.03e-05/2.209e-05, allocations: 2.312 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01249/0.01251, allocations: 11.07 MB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.01848, allocations: 3.617 MB / 283.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.01953, allocations: 91.38 kB / 283.3 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.02093, allocations: 0.8499 MB / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.02252, allocations: 1.013 MB / 285.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.02308, allocations: 435.3 kB / 285.6 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.02577, allocations: 3.875 MB / 289.5 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1029/0.1287, allocations: 1.578 MB / 291 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003295/0.132, allocations: 2.531 MB / 293.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1347, allocations: 1.856 MB / 295.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.1357, allocations: 417.9 kB / 295.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009418/0.1367, allocations: 0.4896 MB / 296.3 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.1377, allocations: 1.24 MB / 297.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002139/0.1398, allocations: 1.341 MB / 298.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.1433, allocations: 3.149 MB / 302.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1433, allocations: 0 / 302.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1433, allocations: 3.969 kB / 302.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001534/0.1435, allocations: 3.281 kB / 302.1 MB, free: 15.42 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.004637/0.1481, allocations: 3.569 MB / 305.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1481, allocations: 7.484 kB / 305.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007682/0.1489, allocations: 0.5051 MB / 306.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.1506, allocations: 1.372 MB / 307.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.138e-05/0.1507, allocations: 216.9 kB / 307.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/0.1509, allocations: 289.6 kB / 308 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.1532, allocations: 2.365 MB / 310.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.214e-05/0.1532, allocations: 6.188 kB / 310.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.1534, allocations: 131.7 kB / 310.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.619e-05/0.1535, allocations: 122.9 kB / 310.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.1549, allocations: 0.8479 MB / 311.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008324/0.1632, allocations: 7.718 MB / 319.2 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008752/0.1641, allocations: 0.9722 MB / 320.2 MB, free: 3.406 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.1647, allocations: 0.5656 MB / 320.7 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.1648, allocations: 57.28 kB / 320.8 MB, free: 2.809 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.1649, allocations: 47.88 kB / 320.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 4.719e-06/0.1649, allocations: 0 / 320.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.005553/0.1704, allocations: 3.102 MB / 323.9 MB, free: 15.67 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.1705, allocations: 68.66 kB / 324 MB, free: 15.59 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.1717, allocations: 1.335 MB / 325.3 MB, free: 14.51 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.8e-05/0.1717, allocations: 57.55 kB / 325.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/0.1723, allocations: 1.162 MB / 326.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.1726, allocations: 0.5292 MB / 327.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/0.173, allocations: 330.2 kB / 327.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.173, allocations: 305.1 kB / 327.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.1733, allocations: 214.7 kB / 327.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004753/0.1738, allocations: 0.6712 MB / 328.6 MB, free: 11.22 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009378/0.1748, allocations: 1.099 MB / 329.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/0.1748, allocations: 4 kB / 329.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001887/0.1767, allocations: 1.405 MB / 331.1 MB, free: 8.688 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.1767, allocations: 16.48 kB / 331.1 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.1767, allocations: 20 kB / 331.1 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.1779, allocations: 0.5766 MB / 331.7 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006801/0.1786, allocations: 348 kB / 332.1 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007856/0.1864, allocations: 15.31 MB / 347.4 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.1875, allocations: 59.95 kB / 347.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-05/0.1876, allocations: 63.98 kB / 347.5 MB, free: 7.457 MB / 298.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.0007818/0.1884, allocations: 226.8 kB / 347.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/0.1887, allocations: 175.8 kB / 347.9 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.1901, allocations: 1.106 MB / 349 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1901, allocations: 12 kB / 349 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.1901, allocations: 8 kB / 349 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.1901, allocations: 7.969 kB / 349 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003874/0.194, allocations: 3.175 MB / 352.2 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.194, allocations: 4 kB / 352.2 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004597/0.1944, allocations: 194.1 kB / 352.4 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.1955, allocations: 0.5514 MB / 352.9 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.063e-05/0.1956, allocations: 35.98 kB / 353 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007836/0.2034, allocations: 13.24 MB / 366.2 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.2034, allocations: 4 kB / 366.2 MB, free: 4.215 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/0.2056, allocations: 1.561 MB / 367.8 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005397/0.2062, allocations: 262.6 kB / 368 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.2063, allocations: 28 kB / 368.1 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000475/0.2068, allocations: 75.95 kB / 368.1 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.207, allocations: 135.9 kB / 368.3 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.814e-05/0.2071, allocations: 32 kB / 368.3 MB, free: 2.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007053/0.2078, allocations: 0.6698 MB / 369 MB, free: 1.504 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2078, allocations: 0 / 369 MB, free: 1.504 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001777/0.2096, allocations: 0.6562 MB / 369.6 MB, free: 0.8477 MB / 314.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.0003206/0.2099, allocations: 189.7 kB / 369.8 MB, free: 0.668 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.2119, allocations: 2.19 MB / 372 MB, free: 14.42 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.413e-05/0.2119, allocations: 24.31 kB / 372 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.213, allocations: 1.662 MB / 373.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.2146, allocations: 0.6074 MB / 374.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006321/0.2209, allocations: 4.748 MB / 379 MB, free: 7.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.2215, allocations: 0.6887 MB / 379.7 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008265/0.2223, allocations: 253.7 kB / 380 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009535/0.2233, allocations: 0.5654 MB / 380.5 MB, free: 5.742 MB / 330.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2233, allocations: 0 / 380.5 MB, free: 5.742 MB / 330.7 MB Notification: Performance of Templates: time 0.05018/0.2735, allocations: 40 MB / 420.5 MB, free: 14.49 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] 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","",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.528722954913974]