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.001121/0.001121, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001174/0.001174, allocations: 168.3 kB / 25.33 MB, free: 9.445 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 0.9286/0.9286, allocations: 158.6 MB / 187.2 MB, free: 2.562 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.462e-06/1.462e-06, allocations: 0 / 251.1 MB, free: 3.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.297e-05/1.444e-05, allocations: 2.312 kB / 251.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006602/0.006617, allocations: 8.062 MB / 259.1 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.01042, allocations: 2.704 MB / 261.8 MB, free: 8.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005272/0.01094, allocations: 35.81 kB / 261.9 MB, free: 8.715 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009996/0.01194, allocations: 0.5121 MB / 262.4 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006463/0.01259, allocations: 488.1 kB / 262.9 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.01305, allocations: 367.4 kB / 263.2 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.01432, allocations: 1.568 MB / 264.8 MB, free: 5.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005049/0.01483, allocations: 384 kB / 265.2 MB, free: 5.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008066/0.01563, allocations: 0.8689 MB / 266 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.0161, allocations: 466.5 kB / 266.5 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.01625, allocations: 140 kB / 266.6 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002528/0.0165, allocations: 175.9 kB / 266.8 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.01665, allocations: 298.8 kB / 267.1 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.01698, allocations: 454.8 kB / 267.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000852/0.01784, allocations: 0.9494 MB / 268.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.01784, allocations: 0 / 268.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.01784, allocations: 0 / 268.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.01785, allocations: 4 kB / 268.5 MB, free: 2.055 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.00178/0.01963, allocations: 1.569 MB / 270 MB, free: 456 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.01967, allocations: 15.98 kB / 270.1 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003986/0.02007, allocations: 268 kB / 270.3 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008518/0.02092, allocations: 0.7396 MB / 271.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/0.02096, allocations: 74.38 kB / 271.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.596e-05/0.02106, allocations: 100.4 kB / 271.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000907/0.02196, allocations: 0.8327 MB / 272.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.02199, allocations: 7.953 kB / 272.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.004e-05/0.02204, allocations: 44 kB / 272.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.02206, allocations: 24 kB / 272.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005365/0.0226, allocations: 355.6 kB / 272.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.0259, allocations: 3.947 MB / 276.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.02635, allocations: 275.7 kB / 276.7 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.02646, allocations: 92.27 kB / 276.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.02649, allocations: 8 kB / 276.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.02652, allocations: 45.14 kB / 276.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.703e-06/0.02652, allocations: 3.938 kB / 276.9 MB, free: 9.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001198/0.02772, allocations: 0.9277 MB / 277.8 MB, free: 8.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.02776, allocations: 106.8 kB / 277.9 MB, free: 8.199 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006512/0.02841, allocations: 0.8154 MB / 278.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.02844, allocations: 37.7 kB / 278.7 MB, free: 7.328 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/0.02874, allocations: 0.6698 MB / 279.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.953e-05/0.02882, allocations: 154.8 kB / 279.6 MB, free: 6.496 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.02894, allocations: 140.2 kB / 279.7 MB, free: 6.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.02905, allocations: 0.5042 MB / 280.2 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.02919, allocations: 95.62 kB / 280.3 MB, free: 5.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.02951, allocations: 0.5859 MB / 280.9 MB, free: 4.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004784/0.02998, allocations: 0.6604 MB / 281.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.02999, allocations: 0 / 281.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006281/0.03062, allocations: 0.6214 MB / 282.2 MB, free: 3.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.03063, allocations: 14.97 kB / 282.2 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.03064, allocations: 8 kB / 282.2 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001152/0.03076, allocations: 39.61 kB / 282.2 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.03106, allocations: 163.7 kB / 282.4 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.0321, allocations: 1.752 MB / 284.1 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.03234, allocations: 39.94 kB / 284.2 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.03236, allocations: 39.94 kB / 284.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002347/0.0326, allocations: 220.8 kB / 284.4 MB, free: 1.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003041/0.0329, allocations: 0.5859 MB / 285 MB, free: 256 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004594/0.03336, allocations: 0.6609 MB / 285.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.158e-06/0.03337, allocations: 4 kB / 285.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006182/0.03398, allocations: 0.6096 MB / 286.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.03399, allocations: 12 kB / 286.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.034, allocations: 11.98 kB / 286.3 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.95e-05/0.03407, allocations: 35.69 kB / 286.3 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.03436, allocations: 172.2 kB / 286.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006003/0.03496, allocations: 1.743 MB / 288.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.03519, allocations: 35.94 kB / 288.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.03522, allocations: 35.98 kB / 288.3 MB, free: 12.59 MB / 282.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.0001407/0.03536, allocations: 327.8 kB / 288.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.129e-05/0.03544, allocations: 103.4 kB / 288.7 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.0358, allocations: 317.1 kB / 289.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.0358, allocations: 4 kB / 289.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.0358, allocations: 0 / 289.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.03581, allocations: 3.984 kB / 289.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.03708, allocations: 1.103 MB / 290.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.03709, allocations: 12.05 kB / 290.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.03727, allocations: 75.89 kB / 290.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.248e-05/0.03732, allocations: 19.69 kB / 290.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.03734, allocations: 15.92 kB / 290.3 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006/0.03794, allocations: 1.736 MB / 292 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.03795, allocations: 4 kB / 292 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006352/0.03858, allocations: 0.593 MB / 292.6 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.03874, allocations: 123.4 kB / 292.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.03879, allocations: 12 kB / 292.8 MB, free: 7.891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.03897, allocations: 23.98 kB / 292.8 MB, free: 7.867 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.03902, allocations: 31.89 kB / 292.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.03903, allocations: 12.06 kB / 292.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004095/0.03944, allocations: 0.5028 MB / 293.3 MB, free: 7.328 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03944, allocations: 0 / 293.3 MB, free: 7.328 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006398/0.04008, allocations: 348 kB / 293.7 MB, free: 6.988 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.0001713/0.04025, allocations: 123.1 kB / 293.8 MB, free: 6.859 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009597/0.04121, allocations: 0.8917 MB / 294.7 MB, free: 5.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.04122, allocations: 4 kB / 294.7 MB, free: 5.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.04143, allocations: 294.2 kB / 295 MB, free: 5.617 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.04205, allocations: 235.8 kB / 295.2 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.04474, allocations: 1.71 MB / 296.9 MB, free: 3.609 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.04488, allocations: 179.5 kB / 297.1 MB, free: 3.414 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000304/0.04518, allocations: 126.8 kB / 297.2 MB, free: 3.285 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.812e-05/0.04528, allocations: 52.5 kB / 297.3 MB, free: 3.234 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.04528, allocations: 3.938 kB / 297.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of Templates: time 0.1158/0.1611, allocations: 11.24 MB / 308.5 MB, free: 50.94 MB / 282.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.1084065441973507]