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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 109.8 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009733/0.0009733, allocations: 47.55 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1039, allocations: 49.44 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01002/0.114, allocations: 8.123 MB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005811/0.1198, allocations: 2.665 MB / 360.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009293/0.1208, allocations: 27.94 kB / 360.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.1224, allocations: 473.4 kB / 360.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.1237, allocations: 377.3 kB / 361.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000807/0.1245, allocations: 322.7 kB / 361.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.1262, allocations: 1.499 MB / 363 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008691/0.1271, allocations: 0.6048 MB / 363.6 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006706/0.1278, allocations: 0.5524 MB / 364.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006517/0.1285, allocations: 0.6065 MB / 364.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.1286, allocations: 144 kB / 364.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003399/0.129, allocations: 180 kB / 365.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.1292, allocations: 283 kB / 365.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005772/0.1298, allocations: 0.6647 MB / 366.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001646/0.1314, allocations: 1.697 MB / 367.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1314, allocations: 0 / 367.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1314, allocations: 0 / 367.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1315, allocations: 0 / 367.8 MB, free: 2.469 MB / 302.1 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.002572/0.134, allocations: 1.511 MB / 369.3 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1341, allocations: 11.97 kB / 369.3 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/0.1347, allocations: 187.2 kB / 369.5 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2113/0.346, allocations: 0.7713 MB / 370.2 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.483e-05/0.3461, allocations: 76.91 kB / 370.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002371/0.3463, allocations: 101.1 kB / 370.4 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.3483, allocations: 0.9483 MB / 371.4 MB, free: 25.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.819e-05/0.3484, allocations: 9.953 kB / 371.4 MB, free: 25.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.319e-05/0.3485, allocations: 42.84 kB / 371.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/0.3485, allocations: 23 kB / 371.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.3498, allocations: 0.6363 MB / 372.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005857/0.3556, allocations: 4.121 MB / 376.2 MB, free: 22.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3568, allocations: 430.4 kB / 376.6 MB, free: 21.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.3571, allocations: 160.2 kB / 376.8 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.3572, allocations: 4.875 kB / 376.8 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.3572, allocations: 36.78 kB / 376.8 MB, free: 21.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.3572, allocations: 0 / 376.8 MB, free: 21.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002656/0.3599, allocations: 1.327 MB / 378.1 MB, free: 21.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.3599, allocations: 107.8 kB / 378.2 MB, free: 20.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3612, allocations: 0.894 MB / 379.1 MB, free: 20.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3613, allocations: 35.69 kB / 379.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/0.3617, allocations: 0.5903 MB / 379.8 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.3618, allocations: 150.7 kB / 379.9 MB, free: 19.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.362, allocations: 134.1 kB / 380 MB, free: 19.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.826e-05/0.3621, allocations: 334.3 kB / 380.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.3625, allocations: 179.8 kB / 380.5 MB, free: 19.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.3629, allocations: 493.5 kB / 381 MB, free: 18.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.3637, allocations: 0.6837 MB / 381.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3638, allocations: 3.125 kB / 381.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001206/0.365, allocations: 0.7445 MB / 382.5 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.365, allocations: 10.41 kB / 382.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.365, allocations: 11.84 kB / 382.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.3652, allocations: 38.28 kB / 382.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005822/0.3658, allocations: 170.2 kB / 382.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008318/0.3666, allocations: 1.403 MB / 384.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.3673, allocations: 38.81 kB / 384.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.3673, allocations: 38.17 kB / 384.2 MB, free: 16.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005719/0.3679, allocations: 349.8 kB / 384.5 MB, free: 16.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003975/0.3683, allocations: 479.9 kB / 385 MB, free: 15.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007528/0.3691, allocations: 0.6631 MB / 385.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.5e-06/0.3691, allocations: 2.281 kB / 385.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001107/0.3702, allocations: 0.723 MB / 386.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3702, allocations: 12.88 kB / 386.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.3703, allocations: 15.03 kB / 386.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.583e-05/0.3704, allocations: 34.8 kB / 386.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.3709, allocations: 166.2 kB / 386.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006709/0.3716, allocations: 1.378 MB / 388 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/0.3721, allocations: 37.58 kB / 388 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.3722, allocations: 42.2 kB / 388 MB, free: 13.43 MB / 302.1 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.0001988/0.3724, allocations: 235 kB / 388.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3725, allocations: 89.91 kB / 388.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008925/0.3734, allocations: 426.8 kB / 388.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3734, allocations: 7.75 kB / 388.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3734, allocations: 0.75 kB / 388.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3735, allocations: 2.938 kB / 388.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.3756, allocations: 1.383 MB / 390.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3756, allocations: 1.734 kB / 390.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.3759, allocations: 76.3 kB / 390.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-05/0.376, allocations: 23.17 kB / 390.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.3761, allocations: 10.41 kB / 390.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006655/0.3768, allocations: 1.374 MB / 391.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3768, allocations: 10.44 kB / 391.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.3778, allocations: 0.7209 MB / 392.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000248/0.3781, allocations: 203 kB / 392.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3782, allocations: 13.66 kB / 392.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004097/0.3786, allocations: 19.88 kB / 392.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.3787, allocations: 35.05 kB / 392.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3787, allocations: 9.75 kB / 392.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000882/0.3796, allocations: 0.61 MB / 393.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3796, allocations: 0 / 393.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001455/0.3811, allocations: 347.8 kB / 393.6 MB, free: 9.816 MB / 302.1 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.0002523/0.3813, allocations: 127.6 kB / 393.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.383, allocations: 0.9861 MB / 394.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.383, allocations: 0 / 394.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.3834, allocations: 280 kB / 395 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3848, allocations: 241.1 kB / 395.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/0.3878, allocations: 2.256 MB / 397.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.3883, allocations: 1.02 MB / 398.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005456/0.3888, allocations: 127.8 kB / 398.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.389, allocations: 60.94 kB / 398.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.389, allocations: 1.375 kB / 398.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of Templates: time 0.01964/0.4086, allocations: 10.59 MB / 409.3 MB, free: 13.08 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches