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.00146/0.00146, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001039/0.001039, allocations: 161.3 kB / 25.61 MB, free: 8.887 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.9522/0.9522, allocations: 177 MB / 205.9 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.422e-06/1.422e-06, allocations: 7.875 kB / 274.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.211e-05, allocations: 3.375 kB / 274.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006351/0.006373, allocations: 7.914 MB / 282 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003642/0.01001, allocations: 2.664 MB / 284.7 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007293/0.01074, allocations: 35.81 kB / 284.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.01191, allocations: 0.5121 MB / 285.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000894/0.01281, allocations: 484.2 kB / 285.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.01337, allocations: 367.4 kB / 286.1 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.01495, allocations: 1.56 MB / 287.6 MB, free: 6.691 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005745/0.01553, allocations: 396 kB / 288 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.0167, allocations: 0.8689 MB / 288.9 MB, free: 5.414 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006382/0.01734, allocations: 466.5 kB / 289.4 MB, free: 4.957 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.0175, allocations: 136 kB / 289.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002556/0.01776, allocations: 172 kB / 289.7 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.01791, allocations: 298.8 kB / 289.9 MB, free: 4.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003596/0.01827, allocations: 454.8 kB / 290.4 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.0193, allocations: 0.9494 MB / 291.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.01931, allocations: 0 / 291.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01931, allocations: 0 / 291.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.933e-05/0.01934, allocations: 4 kB / 291.3 MB, free: 2.961 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.001894/0.02123, allocations: 1.569 MB / 292.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.02127, allocations: 16.02 kB / 292.9 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004612/0.02173, allocations: 272 kB / 293.2 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008111/0.02254, allocations: 0.7122 MB / 293.9 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.02258, allocations: 74.31 kB / 294 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.02268, allocations: 100.4 kB / 294.1 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008016/0.02348, allocations: 0.8156 MB / 294.9 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.02351, allocations: 7.953 kB / 294.9 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.02356, allocations: 40 kB / 294.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.02358, allocations: 24 kB / 295 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.02394, allocations: 289.6 kB / 295.2 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.02716, allocations: 3.97 MB / 299.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.02757, allocations: 255.7 kB / 299.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.52e-05/0.02765, allocations: 79.62 kB / 299.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.02768, allocations: 8.625 kB / 299.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.02771, allocations: 41.39 kB / 299.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.824e-06/0.02771, allocations: 0 / 299.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.001075/0.02878, allocations: 0.7264 MB / 300.3 MB, free: 9.547 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.02883, allocations: 136.5 kB / 300.4 MB, free: 9.383 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005836/0.02941, allocations: 0.7993 MB / 301.2 MB, free: 8.566 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.02944, allocations: 33.7 kB / 301.3 MB, free: 8.527 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000335/0.02978, allocations: 0.6736 MB / 302 MB, free: 7.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.752e-05/0.02987, allocations: 158.7 kB / 302.1 MB, free: 7.688 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.02999, allocations: 148.2 kB / 302.3 MB, free: 7.531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.03011, allocations: 0.5081 MB / 302.8 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.03021, allocations: 75.62 kB / 302.8 MB, free: 6.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.03051, allocations: 0.5989 MB / 303.4 MB, free: 6.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.03093, allocations: 0.6407 MB / 304.1 MB, free: 5.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.03093, allocations: 8 kB / 304.1 MB, free: 5.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005871/0.03152, allocations: 0.5708 MB / 304.7 MB, free: 4.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.03153, allocations: 12.03 kB / 304.7 MB, free: 4.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.03155, allocations: 12 kB / 304.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001017/0.03165, allocations: 35.61 kB / 304.7 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.03195, allocations: 171.7 kB / 304.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007393/0.03269, allocations: 1.725 MB / 306.6 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/0.03297, allocations: 35.94 kB / 306.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.03299, allocations: 28 kB / 306.7 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002071/0.0332, allocations: 208.8 kB / 306.9 MB, free: 2.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003014/0.0335, allocations: 0.6028 MB / 307.5 MB, free: 1.508 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004015/0.0339, allocations: 0.6333 MB / 308.1 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.008e-06/0.03391, allocations: 7.938 kB / 308.1 MB, free: 0.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005625/0.03447, allocations: 0.5783 MB / 308.7 MB, free: 80 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.03448, allocations: 8 kB / 308.7 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.03449, allocations: 12 kB / 308.7 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.597e-05/0.03455, allocations: 31.69 kB / 308.7 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.03484, allocations: 163.7 kB / 308.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006688/0.03551, allocations: 1.725 MB / 310.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.03577, allocations: 43.88 kB / 310.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.0358, allocations: 24 kB / 310.7 MB, free: 13.96 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.000145/0.03594, allocations: 319.8 kB / 311 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-05/0.03603, allocations: 103.6 kB / 311.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003285/0.03636, allocations: 301.5 kB / 311.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.03636, allocations: 4.094 kB / 311.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.03637, allocations: 7.984 kB / 311.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.03637, allocations: 3.984 kB / 311.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009394/0.03731, allocations: 0.9356 MB / 312.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.03732, allocations: 4.219 kB / 312.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.0375, allocations: 83.83 kB / 312.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.98e-05/0.03756, allocations: 27.66 kB / 312.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.03758, allocations: 8 kB / 312.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006221/0.0382, allocations: 1.701 MB / 314.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.0382, allocations: 8.125 kB / 314.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004374/0.03864, allocations: 0.5615 MB / 314.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.03879, allocations: 127.2 kB / 314.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.03884, allocations: 12 kB / 314.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.03902, allocations: 19.98 kB / 314.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.03907, allocations: 31.95 kB / 314.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.03909, allocations: 12 kB / 314.9 MB, free: 9.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003132/0.0394, allocations: 474.7 kB / 315.4 MB, free: 8.992 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0394, allocations: 0 / 315.4 MB, free: 8.992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000719/0.04012, allocations: 347.9 kB / 315.7 MB, free: 8.652 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.0001617/0.04028, allocations: 123.2 kB / 315.9 MB, free: 8.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007019/0.04098, allocations: 0.855 MB / 316.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.04099, allocations: 0 / 316.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.04117, allocations: 279.1 kB / 317 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006194/0.04179, allocations: 239.4 kB / 317.2 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.04389, allocations: 1.698 MB / 318.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.04401, allocations: 179.6 kB / 319.1 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002925/0.0443, allocations: 114.9 kB / 319.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.04464, allocations: 286 kB / 319.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.04464, allocations: 4 kB / 319.5 MB, free: 4.758 MB / 298.7 MB Notification: Performance of Templates: time 0.0149/0.05954, allocations: 11.72 MB / 331.2 MB, free: 9.242 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: 3.132434332277626]