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.0009755/0.0009755, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.0009465/0.0009465, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.8741/0.8741, allocations: 158.6 MB / 187.6 MB, free: 2.941 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.844e-06/1.844e-06, allocations: 0 / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.672e-05/1.857e-05, allocations: 2.312 kB / 251.1 MB, free: 7.777 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0183/0.01832, allocations: 8.021 MB / 259.2 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007567/0.02589, allocations: 2.693 MB / 261.8 MB, free: 13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003801/0.02969, allocations: 35.81 kB / 261.9 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.031, allocations: 0.516 MB / 262.4 MB, free: 12.45 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008649/0.03187, allocations: 492.1 kB / 262.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003633/0.0355, allocations: 359.4 kB / 263.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.03694, allocations: 1.565 MB / 264.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.03752, allocations: 388 kB / 265.2 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004148/0.04167, allocations: 0.8612 MB / 266 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000515/0.04218, allocations: 474.5 kB / 266.5 MB, free: 8.309 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.04233, allocations: 140 kB / 266.6 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002564/0.04258, allocations: 175.9 kB / 266.8 MB, free: 8 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.04276, allocations: 294.9 kB / 267.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.04315, allocations: 458.8 kB / 267.5 MB, free: 7.262 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004093/0.04725, allocations: 0.9611 MB / 268.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.04725, allocations: 0 / 268.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.04725, allocations: 3.984 kB / 268.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.04727, allocations: 4 kB / 268.5 MB, free: 6.289 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.001919/0.04919, allocations: 1.569 MB / 270.1 MB, free: 4.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.04923, allocations: 11.98 kB / 270.1 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005649/0.04979, allocations: 272 kB / 270.4 MB, free: 4.402 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004064/0.05386, allocations: 0.7474 MB / 271.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.68e-05/0.05391, allocations: 78.38 kB / 271.2 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.05405, allocations: 100.3 kB / 271.3 MB, free: 3.449 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.05523, allocations: 0.8365 MB / 272.1 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.05527, allocations: 7.938 kB / 272.1 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-05/0.05534, allocations: 40 kB / 272.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.6e-05/0.05536, allocations: 24 kB / 272.2 MB, free: 2.473 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003885/0.05925, allocations: 359.6 kB / 272.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.06485, allocations: 3.947 MB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.06544, allocations: 275.8 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.06559, allocations: 88.2 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.06562, allocations: 4 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.06566, allocations: 49.12 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.235e-06/0.06566, allocations: 0 / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001551/0.06721, allocations: 0.9277 MB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.06726, allocations: 110.8 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007138/0.06797, allocations: 0.8193 MB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.06799, allocations: 33.7 kB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002984/0.06829, allocations: 0.6659 MB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003376/0.06863, allocations: 154.7 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.06875, allocations: 144.2 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.06886, allocations: 0.5043 MB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.069, allocations: 99.56 kB / 280.3 MB, free: 9.961 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.06933, allocations: 0.582 MB / 280.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.06981, allocations: 0.6604 MB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.06981, allocations: 4 kB / 281.6 MB, free: 8.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006256/0.07043, allocations: 0.617 MB / 282.2 MB, free: 7.672 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.07045, allocations: 8 kB / 282.2 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.07046, allocations: 12 kB / 282.2 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.07059, allocations: 40.33 kB / 282.3 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.0709, allocations: 171.7 kB / 282.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007356/0.07164, allocations: 1.743 MB / 284.2 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.07188, allocations: 35.98 kB / 284.2 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.07191, allocations: 36.17 kB / 284.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002346/0.07214, allocations: 228.8 kB / 284.5 MB, free: 5.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003292/0.07247, allocations: 0.578 MB / 285 MB, free: 4.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004717/0.07295, allocations: 0.6646 MB / 285.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.937e-06/0.07295, allocations: 4 kB / 285.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0008893/0.07384, allocations: 0.6215 MB / 286.3 MB, free: 2.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.07385, allocations: 8 kB / 286.3 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.07386, allocations: 16.09 kB / 286.4 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.707e-05/0.07393, allocations: 27.69 kB / 286.4 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.07421, allocations: 171.7 kB / 286.6 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006328/0.07485, allocations: 1.747 MB / 288.3 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.07507, allocations: 36.11 kB / 288.3 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.0751, allocations: 32 kB / 288.4 MB, free: 0.8164 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.000124/0.07522, allocations: 319.8 kB / 288.7 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.463e-05/0.07531, allocations: 103.4 kB / 288.8 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000361/0.07567, allocations: 317.3 kB / 289.1 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.07567, allocations: 4 kB / 289.1 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.07568, allocations: 4 kB / 289.1 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.07568, allocations: 3.984 kB / 289.1 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.07674, allocations: 1.107 MB / 290.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.07675, allocations: 0 / 290.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.07694, allocations: 79.83 kB / 290.3 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.836e-05/0.077, allocations: 19.69 kB / 290.3 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.07702, allocations: 16.25 kB / 290.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006292/0.07765, allocations: 1.743 MB / 292.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.07765, allocations: 3.938 kB / 292.1 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005038/0.07815, allocations: 0.593 MB / 292.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.0783, allocations: 123.5 kB / 292.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.07835, allocations: 16.06 kB / 292.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.07852, allocations: 19.98 kB / 292.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.935e-05/0.07859, allocations: 35.83 kB / 292.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.07861, allocations: 12 kB / 292.9 MB, free: 12.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000731/0.07934, allocations: 0.5028 MB / 293.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07934, allocations: 0 / 293.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006498/0.07999, allocations: 348 kB / 293.7 MB, free: 11.21 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.0001703/0.08016, allocations: 123.1 kB / 293.8 MB, free: 11.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.081, allocations: 0.8995 MB / 294.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.08101, allocations: 0 / 294.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.0812, allocations: 293.2 kB / 295 MB, free: 9.832 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.08187, allocations: 235.8 kB / 295.2 MB, free: 9.609 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.08407, allocations: 1.711 MB / 297 MB, free: 7.824 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.08418, allocations: 175.5 kB / 297.1 MB, free: 7.633 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002774/0.08445, allocations: 122.8 kB / 297.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.636e-05/0.08455, allocations: 60.5 kB / 297.3 MB, free: 7.449 MB / 282.7 MB Notification: Performance of SimCode: time 9.71e-07/0.08455, allocations: 0 / 297.3 MB, free: 7.449 MB / 282.7 MB Notification: Performance of Templates: time 0.01375/0.0983, allocations: 10.6 MB / 307.9 MB, free: 12.89 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.070665883133188]