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.00136/0.00136, allocations: 112.4 kB / 17.68 MB, free: 5.355 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.001557/0.001557, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.361/1.361, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 47.86 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1348, allocations: 49.43 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01567/0.1506, allocations: 8.158 MB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007723/0.1583, allocations: 2.703 MB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.1596, allocations: 27.94 kB / 362.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002189/0.1619, allocations: 0.5278 MB / 362.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001979/0.1639, allocations: 432.5 kB / 363.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1651, allocations: 361.9 kB / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002478/0.1676, allocations: 1.51 MB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.1689, allocations: 0.6087 MB / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009828/0.1699, allocations: 0.5485 MB / 366.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009785/0.1709, allocations: 0.6104 MB / 367 MB, free: 4.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002451/0.1712, allocations: 139.9 kB / 367.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004792/0.1717, allocations: 184 kB / 367.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003044/0.172, allocations: 279 kB / 367.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008358/0.1729, allocations: 0.6686 MB / 368.2 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.1746, allocations: 1.717 MB / 369.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1746, allocations: 0 / 369.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1747, allocations: 8 kB / 370 MB, free: 1.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.1747, allocations: 0 / 370 MB, free: 1.125 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.1705/0.3452, allocations: 1.505 MB / 371.5 MB, free: 25.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3452, allocations: 9.406 kB / 371.5 MB, free: 25.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006931/0.3459, allocations: 184.7 kB / 371.6 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.3473, allocations: 0.7943 MB / 372.4 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.3474, allocations: 74.34 kB / 372.5 MB, free: 24.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.3475, allocations: 106.3 kB / 372.6 MB, free: 24.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.3491, allocations: 0.9499 MB / 373.6 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.3491, allocations: 7.078 kB / 373.6 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.3492, allocations: 44.62 kB / 373.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.3492, allocations: 26.23 kB / 373.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.3504, allocations: 0.6374 MB / 374.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004387/0.3548, allocations: 4.07 MB / 378.4 MB, free: 21.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008769/0.3557, allocations: 427.1 kB / 378.8 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3559, allocations: 169.8 kB / 378.9 MB, free: 21.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.356, allocations: 3.891 kB / 378.9 MB, free: 21.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.356, allocations: 45.56 kB / 379 MB, free: 21.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.285e-06/0.356, allocations: 0 / 379 MB, free: 21.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002065/0.3581, allocations: 1.311 MB / 380.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.3581, allocations: 112.4 kB / 380.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3592, allocations: 0.8907 MB / 381.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3593, allocations: 31.08 kB / 381.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.3596, allocations: 0.5933 MB / 381.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.547e-05/0.3597, allocations: 149.5 kB / 382.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.3598, allocations: 138.6 kB / 382.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.3599, allocations: 338.3 kB / 382.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.3602, allocations: 176.7 kB / 382.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004041/0.3606, allocations: 490.6 kB / 383.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.3614, allocations: 0.6869 MB / 383.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.3614, allocations: 3.312 kB / 383.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001132/0.3625, allocations: 0.7518 MB / 384.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3625, allocations: 9.25 kB / 384.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.3626, allocations: 11.12 kB / 384.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001472/0.3627, allocations: 35.17 kB / 384.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.3633, allocations: 173.1 kB / 384.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007527/0.364, allocations: 1.394 MB / 386.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.3646, allocations: 40.03 kB / 386.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.3647, allocations: 33.77 kB / 386.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005159/0.3652, allocations: 350.2 kB / 386.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004342/0.3656, allocations: 484.4 kB / 387.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000641/0.3663, allocations: 0.6594 MB / 387.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.571e-06/0.3663, allocations: 4.031 kB / 387.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001042/0.3673, allocations: 0.7283 MB / 388.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.3674, allocations: 10.31 kB / 388.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3674, allocations: 12.38 kB / 388.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.779e-05/0.3675, allocations: 35.36 kB / 388.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.368, allocations: 166.4 kB / 388.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005876/0.3686, allocations: 1.388 MB / 390.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/0.3691, allocations: 33.52 kB / 390.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.3691, allocations: 41.77 kB / 390.2 MB, free: 12.76 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.0001293/0.3692, allocations: 226.3 kB / 390.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.3694, allocations: 103.1 kB / 390.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007653/0.3701, allocations: 435 kB / 390.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3702, allocations: 3.344 kB / 391 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3702, allocations: 1.922 kB / 391 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.3702, allocations: 2.156 kB / 391 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.3722, allocations: 1.375 MB / 392.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.3722, allocations: 3.359 kB / 392.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.3725, allocations: 77.66 kB / 392.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.226e-05/0.3726, allocations: 27.52 kB / 392.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.3727, allocations: 9.047 kB / 392.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006268/0.3733, allocations: 1.369 MB / 393.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3733, allocations: 1.438 kB / 393.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009483/0.3743, allocations: 0.7186 MB / 394.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.3745, allocations: 206.9 kB / 394.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.651e-05/0.3746, allocations: 17.8 kB / 394.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/0.375, allocations: 23.39 kB / 394.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.3751, allocations: 35 kB / 394.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.3751, allocations: 9.781 kB / 394.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006631/0.3758, allocations: 0.6113 MB / 395.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3758, allocations: 4 kB / 395.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001/0.3768, allocations: 345.7 kB / 395.8 MB, free: 9.086 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.0001794/0.377, allocations: 126.5 kB / 395.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.3783, allocations: 0.9662 MB / 396.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3783, allocations: 1.625 kB / 396.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003355/0.3787, allocations: 290.9 kB / 397.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009762/0.3797, allocations: 235.6 kB / 397.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.3823, allocations: 1.818 MB / 399.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.3827, allocations: 1.021 MB / 400.2 MB, free: 6.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004048/0.3831, allocations: 128.3 kB / 400.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3832, allocations: 54.72 kB / 400.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3832, allocations: 0 / 400.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of Templates: time 0.01665/0.3999, allocations: 10.64 MB / 411 MB, free: 12.02 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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