Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.002634/0.002634, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002947/0.002947, allocations: 164.4 kB / 25.03 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 158.6 MB / 186.8 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.312e-05/4.551e-05, allocations: 6.109 kB / 250.4 MB, free: 7.82 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01692/0.01697, allocations: 11.56 MB / 261.9 MB, free: 12.2 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007838/0.02481, allocations: 3.169 MB / 265.1 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001622/0.02643, allocations: 43.81 kB / 265.1 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.02851, allocations: 0.6166 MB / 265.8 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002712/0.03123, allocations: 0.7597 MB / 266.5 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.03228, allocations: 403.4 kB / 266.9 MB, free: 7.191 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003695/0.03597, allocations: 2.329 MB / 269.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.0372, allocations: 0.6106 MB / 269.9 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002859/0.04006, allocations: 1.313 MB / 271.2 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00135/0.04141, allocations: 0.7166 MB / 271.9 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003462/0.04175, allocations: 216 kB / 272.1 MB, free: 1.949 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005433/0.0423, allocations: 252 kB / 272.3 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004399/0.04274, allocations: 442.3 kB / 272.8 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.04379, allocations: 0.7054 MB / 273.5 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.04758, allocations: 2.698 MB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.04759, allocations: 0 / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.04759, allocations: 4 kB / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.716e-05/0.04766, allocations: 4 kB / 276.2 MB, free: 13.85 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005919/0.05357, allocations: 2.302 MB / 278.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.05363, allocations: 12.03 kB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.05526, allocations: 391.6 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.05835, allocations: 1.014 MB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.05853, allocations: 115.5 kB / 280 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004169/0.05895, allocations: 156.3 kB / 280.2 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00483/0.06378, allocations: 1.74 MB / 281.9 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.722e-05/0.06387, allocations: 15.89 kB / 281.9 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002214/0.06409, allocations: 60 kB / 282 MB, free: 7.848 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.836e-05/0.06417, allocations: 43.98 kB / 282 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003214/0.06738, allocations: 0.9317 MB / 283 MB, free: 6.867 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01766/0.08505, allocations: 7.883 MB / 290.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.0864, allocations: 389.4 kB / 291.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/0.08707, allocations: 201.1 kB / 291.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.606e-05/0.08714, allocations: 12.5 kB / 291.4 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.0883, allocations: 347.3 kB / 291.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 5.972e-06/0.08831, allocations: 3.984 kB / 291.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.005408/0.09372, allocations: 1.546 MB / 293.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/0.0939, allocations: 170.7 kB / 293.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003334/0.09724, allocations: 1.45 MB / 294.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.156e-05/0.09733, allocations: 41.64 kB / 295 MB, free: 10.24 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.09889, allocations: 1.02 MB / 296 MB, free: 9.211 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.09923, allocations: 226.2 kB / 296.2 MB, free: 8.988 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000582/0.09981, allocations: 268.4 kB / 296.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004841/0.1003, allocations: 0.5629 MB / 297 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000801/0.1011, allocations: 248.2 kB / 297.3 MB, free: 7.898 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002291/0.1034, allocations: 1.213 MB / 298.5 MB, free: 6.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/0.1062, allocations: 1.39 MB / 299.9 MB, free: 4.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/0.1062, allocations: 8 kB / 299.9 MB, free: 4.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003624/0.1098, allocations: 1.246 MB / 301.1 MB, free: 3.238 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.005e-05/0.1099, allocations: 37.7 kB / 301.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.152e-05/0.1099, allocations: 20 kB / 301.2 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003643/0.1103, allocations: 71.34 kB / 301.3 MB, free: 3.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.1115, allocations: 263.6 kB / 301.5 MB, free: 2.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/0.116, allocations: 3.573 MB / 305.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.1176, allocations: 64.14 kB / 305.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.1178, allocations: 64 kB / 305.2 MB, free: 14.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.001025/0.1188, allocations: 408 kB / 305.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000369/0.1192, allocations: 139.2 kB / 305.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.1208, allocations: 0.5201 MB / 306.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.1208, allocations: 15.94 kB / 306.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1208, allocations: 0 / 306.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.1208, allocations: 3.984 kB / 306.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005203/0.126, allocations: 2.034 MB / 308.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.126, allocations: 7.938 kB / 308.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.1268, allocations: 99.83 kB / 308.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002766/0.127, allocations: 51.34 kB / 308.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.392e-05/0.1271, allocations: 16 kB / 308.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003962/0.131, allocations: 3.553 MB / 312.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.1311, allocations: 4 kB / 312.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.1332, allocations: 1.013 MB / 313.1 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004718/0.1336, allocations: 159.2 kB / 313.2 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.1338, allocations: 19.98 kB / 313.2 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.1343, allocations: 23.98 kB / 313.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.1345, allocations: 55.8 kB / 313.3 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.1345, allocations: 20 kB / 313.3 MB, free: 6.281 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.1358, allocations: 0.8488 MB / 314.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1358, allocations: 0 / 314.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001239/0.1371, allocations: 300 kB / 314.5 MB, free: 5.133 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,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.0002931/0.1374, allocations: 123.1 kB / 314.6 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.1394, allocations: 1.122 MB / 315.7 MB, free: 3.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1394, allocations: 0 / 315.7 MB, free: 3.828 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008103/0.1402, allocations: 0.5676 MB / 316.3 MB, free: 3.223 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.1417, allocations: 321.4 kB / 316.6 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.1465, allocations: 2.5 MB / 319.1 MB, free: 308 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008905/0.1474, allocations: 0.5962 MB / 319.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006136/0.148, allocations: 158.1 kB / 319.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.1482, allocations: 76.5 kB / 319.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1482, allocations: 0 / 319.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of Templates: time 0.02964/0.1778, allocations: 14.37 MB / 334.3 MB, free: 1.086 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.25188297603745]