Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 81.81 kB / 21.43 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 163.3 kB / 24.82 MB, free: 8.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9062/0.9062, allocations: 177 MB / 205.1 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 273.3 MB, free: 4.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.288e-05/1.415e-05, allocations: 6.312 kB / 273.3 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006296/0.00631, allocations: 7.91 MB / 281.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.009459, allocations: 2.662 MB / 283.9 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004038/0.009863, allocations: 35.81 kB / 283.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008978/0.01076, allocations: 0.5199 MB / 284.5 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005695/0.01133, allocations: 480.2 kB / 284.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004289/0.01176, allocations: 371.4 kB / 285.3 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008775/0.01264, allocations: 1.557 MB / 286.9 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006382/0.01327, allocations: 399.9 kB / 287.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000626/0.0139, allocations: 0.8689 MB / 288.1 MB, free: 5.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.01426, allocations: 466.5 kB / 288.6 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.01436, allocations: 136 kB / 288.7 MB, free: 4.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001953/0.01456, allocations: 172 kB / 288.9 MB, free: 4.648 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.01468, allocations: 290.8 kB / 289.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.01494, allocations: 454.9 kB / 289.6 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006973/0.01563, allocations: 0.9572 MB / 290.6 MB, free: 2.957 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.01563, allocations: 4 kB / 290.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01564, allocations: 0 / 290.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.01564, allocations: 0 / 290.6 MB, free: 2.953 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.001315/0.01696, allocations: 1.573 MB / 292.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.01699, allocations: 8.031 kB / 292.1 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.01734, allocations: 276 kB / 292.4 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.01796, allocations: 0.7083 MB / 293.1 MB, free: 328 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.018, allocations: 74.38 kB / 293.2 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.277e-05/0.01808, allocations: 100.4 kB / 293.3 MB, free: 152 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000666/0.01875, allocations: 0.8131 MB / 294.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.01877, allocations: 11.89 kB / 294.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00027/0.01904, allocations: 40 kB / 294.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.01906, allocations: 24 kB / 294.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.01937, allocations: 285.6 kB / 294.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.02213, allocations: 3.978 MB / 298.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.02248, allocations: 253.6 kB / 298.7 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.02256, allocations: 75.62 kB / 298.8 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.02258, allocations: 12.61 kB / 298.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.0226, allocations: 41.39 kB / 298.8 MB, free: 10.31 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.442e-06/0.0226, allocations: 0 / 298.8 MB, free: 10.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008745/0.02348, allocations: 0.7342 MB / 299.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.02352, allocations: 132.5 kB / 299.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005279/0.02405, allocations: 0.7954 MB / 300.5 MB, free: 8.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.02407, allocations: 33.7 kB / 300.5 MB, free: 8.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.02435, allocations: 0.6775 MB / 301.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003057/0.02466, allocations: 150.7 kB / 301.3 MB, free: 7.688 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.02478, allocations: 148.2 kB / 301.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.02488, allocations: 0.5042 MB / 302 MB, free: 7.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.03e-05/0.02496, allocations: 79.62 kB / 302 MB, free: 6.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.02524, allocations: 0.5989 MB / 302.6 MB, free: 6.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.02563, allocations: 0.6407 MB / 303.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.02563, allocations: 3.938 kB / 303.3 MB, free: 5.266 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005124/0.02615, allocations: 0.5747 MB / 303.9 MB, free: 4.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.02616, allocations: 15.98 kB / 303.9 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.02617, allocations: 16.03 kB / 303.9 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-05/0.02626, allocations: 35.62 kB / 303.9 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.02655, allocations: 167.7 kB / 304.1 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006288/0.02718, allocations: 1.717 MB / 305.8 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.02742, allocations: 44.06 kB / 305.9 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.02744, allocations: 28 kB / 305.9 MB, free: 2.547 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001831/0.02763, allocations: 208.8 kB / 306.1 MB, free: 2.336 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000295/0.02792, allocations: 0.6028 MB / 306.7 MB, free: 1.504 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003947/0.02832, allocations: 0.6334 MB / 307.3 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.566e-06/0.02832, allocations: 4 kB / 307.3 MB, free: 0.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0007335/0.02905, allocations: 0.5784 MB / 307.9 MB, free: 80 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.02906, allocations: 8 kB / 307.9 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.02907, allocations: 12 kB / 307.9 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.09e-05/0.02913, allocations: 43.61 kB / 308 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.02942, allocations: 159.7 kB / 308.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000574/0.02999, allocations: 1.729 MB / 309.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.03023, allocations: 35.89 kB / 309.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.03025, allocations: 28 kB / 309.9 MB, free: 13.95 MB / 298.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.0001145/0.03036, allocations: 323.8 kB / 310.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-05/0.03045, allocations: 103.4 kB / 310.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/0.03074, allocations: 301.6 kB / 310.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.03074, allocations: 4 kB / 310.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.03074, allocations: 0 / 310.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.03075, allocations: 0 / 310.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008559/0.0316, allocations: 0.9434 MB / 311.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.0316, allocations: 0 / 311.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.03178, allocations: 75.91 kB / 311.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.207e-05/0.03184, allocations: 31.88 kB / 311.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.03185, allocations: 8 kB / 311.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005412/0.03239, allocations: 1.709 MB / 313.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.03239, allocations: 4 kB / 313.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.03281, allocations: 0.5655 MB / 314 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.03295, allocations: 127.2 kB / 314.1 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.834e-05/0.033, allocations: 19.94 kB / 314.1 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.03318, allocations: 15.98 kB / 314.1 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.03321, allocations: 31.95 kB / 314.2 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.03323, allocations: 19.98 kB / 314.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002873/0.03351, allocations: 462.8 kB / 314.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.03351, allocations: 0 / 314.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008801/0.0344, allocations: 351.9 kB / 315 MB, free: 8.641 MB / 298.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.0001328/0.03453, allocations: 123.1 kB / 315.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006552/0.03518, allocations: 0.8574 MB / 316 MB, free: 7.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.03519, allocations: 2 kB / 316 MB, free: 7.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.03535, allocations: 282.1 kB / 316.2 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005822/0.03593, allocations: 230.9 kB / 316.5 MB, free: 7.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.03778, allocations: 1.69 MB / 318.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.03788, allocations: 171.6 kB / 318.3 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002652/0.03815, allocations: 126.8 kB / 318.4 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/0.03849, allocations: 286 kB / 318.7 MB, free: 4.75 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.03849, allocations: 0 / 318.7 MB, free: 4.75 MB / 298.7 MB Notification: Performance of Templates: time 0.01448/0.05296, allocations: 11.52 MB / 330.2 MB, free: 9.469 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.987367121037096]