Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.0008671/0.0008671, 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.0008453/0.0008453, allocations: 142.7 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.9021/0.9021, allocations: 173.4 MB / 201.5 MB, free: 8.238 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 268.5 MB, free: 9.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.29e-05, allocations: 5.891 kB / 268.5 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006571/0.006594, allocations: 7.938 MB / 276.5 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003934/0.01053, allocations: 2.731 MB / 279.2 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006966/0.01122, allocations: 35.81 kB / 279.2 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.01241, allocations: 0.5238 MB / 279.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000799/0.01321, allocations: 492.1 kB / 280.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005507/0.01376, allocations: 363.4 kB / 280.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.015, allocations: 1.557 MB / 282.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005025/0.0155, allocations: 404 kB / 282.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007929/0.01629, allocations: 0.869 MB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004465/0.01674, allocations: 470.5 kB / 283.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.01686, allocations: 136 kB / 284 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002355/0.01709, allocations: 175.9 kB / 284.2 MB, free: 10 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.01723, allocations: 294.8 kB / 284.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002817/0.01752, allocations: 458.8 kB / 284.9 MB, free: 9.262 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008464/0.01836, allocations: 0.9494 MB / 285.9 MB, free: 8.309 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01836, allocations: 0 / 285.9 MB, free: 8.309 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01837, allocations: 0 / 285.9 MB, free: 8.309 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.01838, allocations: 0 / 285.9 MB, free: 8.309 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001272/0.01965, allocations: 1.429 MB / 287.3 MB, free: 6.852 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.01968, allocations: 8.031 kB / 287.3 MB, free: 6.844 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003751/0.02006, allocations: 224.7 kB / 287.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.0207, allocations: 0.5809 MB / 288.1 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.02074, allocations: 74.38 kB / 288.2 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.063e-05/0.02082, allocations: 100.3 kB / 288.3 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.02145, allocations: 0.7708 MB / 289.1 MB, free: 5.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.02147, allocations: 3.953 kB / 289.1 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.02151, allocations: 36 kB / 289.1 MB, free: 4.973 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.02153, allocations: 24 kB / 289.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.02181, allocations: 253.7 kB / 289.4 MB, free: 4.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002496/0.02431, allocations: 3.112 MB / 292.5 MB, free: 1.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003283/0.02464, allocations: 226.8 kB / 292.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.193e-05/0.02471, allocations: 73.39 kB / 292.8 MB, free: 1.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.02473, allocations: 7.75 kB / 292.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.02475, allocations: 38.56 kB / 292.8 MB, free: 1.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.443e-06/0.02475, allocations: 4 kB / 292.8 MB, free: 1.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008886/0.02564, allocations: 0.6681 MB / 293.5 MB, free: 340 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.02569, allocations: 110.8 kB / 293.6 MB, free: 204 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.02618, allocations: 0.7236 MB / 294.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.02621, allocations: 37.7 kB / 294.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.02641, allocations: 0.5089 MB / 294.9 MB, free: 14.9 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.018e-05/0.02648, allocations: 158.7 kB / 295 MB, free: 14.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.02659, allocations: 142.5 kB / 295.2 MB, free: 14.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.91e-05/0.02667, allocations: 333.9 kB / 295.5 MB, free: 14.26 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.28e-05/0.02674, allocations: 68.81 kB / 295.5 MB, free: 14.19 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.02696, allocations: 441.3 kB / 296 MB, free: 13.6 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.02731, allocations: 0.5148 MB / 296.5 MB, free: 12.94 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.02732, allocations: 0 / 296.5 MB, free: 12.94 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004378/0.02775, allocations: 478 kB / 297 MB, free: 12.46 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.02777, allocations: 8 kB / 297 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.02778, allocations: 16 kB / 297 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.845e-05/0.02788, allocations: 36.72 kB / 297 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.02823, allocations: 191.7 kB / 297.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005264/0.02876, allocations: 1.17 MB / 298.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.02897, allocations: 35.95 kB / 298.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.029, allocations: 31.98 kB / 298.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001539/0.02915, allocations: 150.1 kB / 298.6 MB, free: 10.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002139/0.02937, allocations: 445.3 kB / 299 MB, free: 10.14 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000315/0.02968, allocations: 0.5072 MB / 299.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.078e-06/0.02969, allocations: 4 kB / 299.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004016/0.03009, allocations: 465.6 kB / 300 MB, free: 9.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.0301, allocations: 8 kB / 300 MB, free: 9.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.0301, allocations: 12 kB / 300 MB, free: 9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.025e-05/0.03016, allocations: 41.45 kB / 300.1 MB, free: 8.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.03047, allocations: 183.7 kB / 300.2 MB, free: 8.777 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004584/0.03092, allocations: 1.183 MB / 301.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.03114, allocations: 28.12 kB / 301.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.03116, allocations: 32 kB / 301.5 MB, free: 7.453 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.0001009/0.03126, allocations: 231.9 kB / 301.7 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.366e-05/0.03132, allocations: 63.94 kB / 301.8 MB, free: 7.156 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.03158, allocations: 258.3 kB / 302 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.03158, allocations: 4 kB / 302 MB, free: 6.887 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.03158, allocations: 4 kB / 302 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.03159, allocations: 0 / 302 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.03229, allocations: 0.7116 MB / 302.7 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.03229, allocations: 0 / 302.7 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.03248, allocations: 79.89 kB / 302.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-05/0.03253, allocations: 24.84 kB / 302.8 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.03255, allocations: 8 kB / 302.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004501/0.033, allocations: 1.158 MB / 304 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.033, allocations: 4 kB / 304 MB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003439/0.03334, allocations: 436.9 kB / 304.4 MB, free: 4.293 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.03346, allocations: 83.41 kB / 304.5 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.03351, allocations: 12.12 kB / 304.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.03367, allocations: 19.98 kB / 304.5 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.03371, allocations: 35.83 kB / 304.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.03373, allocations: 12 kB / 304.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002477/0.03398, allocations: 343.3 kB / 304.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03398, allocations: 0 / 304.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00057/0.03455, allocations: 351.9 kB / 305.3 MB, free: 3.453 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.0001388/0.03468, allocations: 108.3 kB / 305.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005931/0.03528, allocations: 0.7196 MB / 306.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/0.03529, allocations: 12.5 kB / 306.1 MB, free: 2.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.03543, allocations: 215.2 kB / 306.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.03596, allocations: 244.3 kB / 306.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.03783, allocations: 1.642 MB / 308.2 MB, free: 436 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.03794, allocations: 175.6 kB / 308.4 MB, free: 240 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.0382, allocations: 114.9 kB / 308.5 MB, free: 120 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003349/0.03854, allocations: 245.2 kB / 308.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of SimCode: time 1.232e-06/0.03854, allocations: 0 / 308.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of Templates: time 0.01379/0.05233, allocations: 11.63 MB / 320.4 MB, free: 4.5 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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: 2.773789207916707]