Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.0009762/0.0009762, allocations: 85.95 kB / 23 MB, free: 1.504 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.0009887/0.0009887, allocations: 172.1 kB / 26.39 MB, free: 8 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.03/1.03, allocations: 158.6 MB / 188.3 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] 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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 252.3 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.566e-05, allocations: 6.25 kB / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00774/0.007765, allocations: 7.864 MB / 260.1 MB, free: 15.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.01146, allocations: 2.677 MB / 262.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000548/0.01201, allocations: 35.81 kB / 262.8 MB, free: 12.61 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.01304, allocations: 0.516 MB / 263.4 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007184/0.01376, allocations: 492.1 kB / 263.8 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005451/0.0143, allocations: 367.4 kB / 264.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001332/0.01563, allocations: 1.564 MB / 265.8 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005078/0.01614, allocations: 384 kB / 266.1 MB, free: 9.273 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009189/0.01706, allocations: 0.8729 MB / 267 MB, free: 8.398 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005231/0.01758, allocations: 466.5 kB / 267.5 MB, free: 7.941 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.01774, allocations: 136 kB / 267.6 MB, free: 7.809 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.01802, allocations: 179.9 kB / 267.8 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.0182, allocations: 290.8 kB / 268.1 MB, free: 7.348 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004104/0.01861, allocations: 450.8 kB / 268.5 MB, free: 6.906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009679/0.01958, allocations: 0.9572 MB / 269.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.01959, allocations: 4 kB / 269.5 MB, free: 5.941 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.01959, allocations: 0 / 269.5 MB, free: 5.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.0196, allocations: 0 / 269.5 MB, free: 5.941 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001631/0.02123, allocations: 1.585 MB / 271 MB, free: 4.316 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.02127, allocations: 11.98 kB / 271.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004221/0.02169, allocations: 272 kB / 271.3 MB, free: 4.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.02247, allocations: 0.7239 MB / 272 MB, free: 3.285 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.02251, allocations: 70.38 kB / 272.1 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.752e-05/0.02261, allocations: 104.4 kB / 272.2 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007258/0.02333, allocations: 0.7739 MB / 273 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.02336, allocations: 11.94 kB / 273 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.02341, allocations: 43.98 kB / 273 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.02343, allocations: 24 kB / 273.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003464/0.02378, allocations: 281.6 kB / 273.3 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/0.02707, allocations: 3.974 MB / 277.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.02745, allocations: 259.6 kB / 277.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.179e-05/0.02753, allocations: 76.25 kB / 277.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.02756, allocations: 8 kB / 277.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.02758, allocations: 41.14 kB / 277.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.02758, allocations: 4 kB / 277.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009573/0.02854, allocations: 0.7318 MB / 278.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.02858, allocations: 110.8 kB / 278.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005549/0.02914, allocations: 0.7993 MB / 279.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.02916, allocations: 29.7 kB / 279.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.02949, allocations: 0.6814 MB / 280 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.02957, allocations: 150.7 kB / 280.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.02969, allocations: 148.1 kB / 280.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.02982, allocations: 0.5081 MB / 280.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.472e-05/0.0299, allocations: 75.62 kB / 280.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002897/0.03019, allocations: 0.5702 MB / 281.5 MB, free: 9.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.0306, allocations: 0.6329 MB / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.0306, allocations: 0 / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005567/0.03116, allocations: 0.5748 MB / 282.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.03118, allocations: 12 kB / 282.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.03118, allocations: 8 kB / 282.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.811e-05/0.03128, allocations: 47.59 kB / 282.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.03158, allocations: 171.7 kB / 282.9 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007242/0.03231, allocations: 1.721 MB / 284.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.03255, allocations: 40.08 kB / 284.7 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.03258, allocations: 28 kB / 284.7 MB, free: 5.637 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001889/0.03277, allocations: 204.8 kB / 284.9 MB, free: 5.434 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002951/0.03306, allocations: 0.5663 MB / 285.5 MB, free: 4.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004199/0.03348, allocations: 0.6372 MB / 286.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.537e-06/0.03348, allocations: 4 kB / 286.1 MB, free: 3.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005349/0.03402, allocations: 0.5746 MB / 286.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.03403, allocations: 12 kB / 286.7 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.03404, allocations: 11.98 kB / 286.7 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.411e-05/0.0341, allocations: 39.61 kB / 286.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.03438, allocations: 167.7 kB / 286.9 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006437/0.03502, allocations: 1.725 MB / 288.7 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.03525, allocations: 31.98 kB / 288.7 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.03528, allocations: 39.97 kB / 288.7 MB, free: 1.078 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.03542, allocations: 319.8 kB / 289 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.316e-05/0.03551, allocations: 103.4 kB / 289.1 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003103/0.03582, allocations: 293.3 kB / 289.4 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.03582, allocations: 8.062 kB / 289.4 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.03583, allocations: 0 / 289.4 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.03583, allocations: 0 / 289.4 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000908/0.03674, allocations: 0.955 MB / 290.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.03674, allocations: 4 kB / 290.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.03693, allocations: 75.91 kB / 290.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-05/0.03699, allocations: 23.89 kB / 290.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.03701, allocations: 16 kB / 290.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006161/0.03762, allocations: 1.701 MB / 292.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.03763, allocations: 4 kB / 292.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004601/0.03809, allocations: 0.5658 MB / 292.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.03823, allocations: 123.3 kB / 292.9 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.03829, allocations: 12 kB / 292.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.03846, allocations: 19.98 kB / 292.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.03851, allocations: 31.89 kB / 293 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.03852, allocations: 11.98 kB / 293 MB, free: 12.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002997/0.03882, allocations: 466.8 kB / 293.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.03882, allocations: 0 / 293.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006741/0.0395, allocations: 344 kB / 293.8 MB, free: 11.79 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001476/0.03964, allocations: 119.2 kB / 293.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.04034, allocations: 0.8594 MB / 294.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.04034, allocations: 4 kB / 294.7 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.04051, allocations: 278.8 kB / 295 MB, free: 10.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000621/0.04113, allocations: 242.8 kB / 295.3 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.04311, allocations: 1.707 MB / 297 MB, free: 8.457 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.04322, allocations: 175.5 kB / 297.1 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.04349, allocations: 122.8 kB / 297.2 MB, free: 8.141 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.04382, allocations: 282 kB / 297.5 MB, free: 7.863 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.04383, allocations: 3.938 kB / 297.5 MB, free: 7.859 MB / 282.7 MB Notification: Performance of Templates: time 0.01463/0.05846, allocations: 11.74 MB / 309.3 MB, free: 12.15 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_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_CurrentControlled/DCPM_CurrentControlled.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.1779415658675134]