Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001213, allocations: 108.6 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 35.92 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2809, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008995/0.2899, allocations: 12.06 MB / 411.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004751/0.2947, allocations: 3.244 MB / 414.8 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.2964, allocations: 35.94 kB / 414.8 MB, free: 17.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.2985, allocations: 0.5787 MB / 415.4 MB, free: 17.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.3008, allocations: 0.6322 MB / 416 MB, free: 16.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006944/0.3015, allocations: 351.8 kB / 416.4 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001677/0.3032, allocations: 2.313 MB / 418.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009866/0.3041, allocations: 0.8505 MB / 419.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008036/0.305, allocations: 0.8166 MB / 420.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006165/0.3056, allocations: 0.9214 MB / 421.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.3058, allocations: 140 kB / 421.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.3061, allocations: 184 kB / 421.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.3063, allocations: 370.3 kB / 421.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006072/0.3069, allocations: 0.991 MB / 422.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002266/0.3092, allocations: 2.725 MB / 425.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3092, allocations: 0 / 425.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3092, allocations: 0 / 425.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.3093, allocations: 0 / 425.7 MB, free: 7.039 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004725/0.314, allocations: 2.152 MB / 427.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3141, allocations: 12.03 kB / 427.8 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.3155, allocations: 286.3 kB / 428.1 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.3178, allocations: 1.103 MB / 429.2 MB, free: 3.375 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.058e-05/0.3179, allocations: 119.5 kB / 429.3 MB, free: 3.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002616/0.3182, allocations: 159.8 kB / 429.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003487/0.3217, allocations: 1.504 MB / 431 MB, free: 1.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.635e-05/0.3218, allocations: 19.83 kB / 431 MB, free: 1.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001614/0.3219, allocations: 60 kB / 431.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.322, allocations: 40 kB / 431.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.3252, allocations: 1.045 MB / 432.1 MB, free: 376 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.3378, allocations: 6.284 MB / 438.4 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/0.3403, allocations: 0.613 MB / 439 MB, free: 9.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.3419, allocations: 458.3 kB / 439.5 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.612e-05/0.342, allocations: 8.703 kB / 439.5 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.3421, allocations: 47.12 kB / 439.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.858e-06/0.3421, allocations: 0 / 439.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.008286/0.3504, allocations: 2.372 MB / 441.9 MB, free: 6.188 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/0.3505, allocations: 107.5 kB / 442 MB, free: 6.055 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.3536, allocations: 1.302 MB / 443.3 MB, free: 4.738 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.3537, allocations: 37.7 kB / 443.4 MB, free: 4.695 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009432/0.3546, allocations: 0.8492 MB / 444.2 MB, free: 3.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003241/0.355, allocations: 272.2 kB / 444.5 MB, free: 3.566 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004715/0.3555, allocations: 206.7 kB / 444.7 MB, free: 3.359 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3557, allocations: 345.9 kB / 445 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.3568, allocations: 286.5 kB / 445.3 MB, free: 2.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.3583, allocations: 0.7381 MB / 446 MB, free: 1.781 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.361, allocations: 1.084 MB / 447.1 MB, free: 500 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.361, allocations: 4 kB / 447.1 MB, free: 496 kB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004266/0.3653, allocations: 1.264 MB / 448.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.3653, allocations: 8 kB / 448.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.091e-05/0.3654, allocations: 16 kB / 448.4 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008446/0.3663, allocations: 139.1 kB / 448.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.3679, allocations: 255.5 kB / 448.8 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005875/0.3738, allocations: 4.282 MB / 453.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.3754, allocations: 60.03 kB / 453.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3755, allocations: 56 kB / 453.2 MB, free: 9.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008061/0.3763, allocations: 360.5 kB / 453.5 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002805/0.3766, allocations: 138.3 kB / 453.7 MB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.3797, allocations: 0.8373 MB / 454.5 MB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.3797, allocations: 8 kB / 454.5 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3797, allocations: 0 / 454.5 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3797, allocations: 3.984 kB / 454.5 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.386, allocations: 2.338 MB / 456.9 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.386, allocations: 4 kB / 456.9 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.3871, allocations: 127.8 kB / 457 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007558/0.3879, allocations: 134.9 kB / 457.1 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/0.3879, allocations: 23.97 kB / 457.1 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006258/0.3942, allocations: 4.391 MB / 461.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/0.3943, allocations: 12.09 kB / 461.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02487/0.4191, allocations: 10.24 MB / 471.8 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/0.4198, allocations: 283.4 kB / 472.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.42, allocations: 16 kB / 472.1 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009707/0.421, allocations: 39.97 kB / 472.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.4212, allocations: 64.42 kB / 472.2 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-05/0.4213, allocations: 20 kB / 472.2 MB, free: 5.754 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002036/0.4233, allocations: 0.8781 MB / 473.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4233, allocations: 0 / 473.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002572/0.4259, allocations: 476 kB / 473.5 MB, free: 4.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003024/0.4262, allocations: 142.3 kB / 473.7 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003086/0.4294, allocations: 1.116 MB / 474.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4294, allocations: 0 / 474.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.431, allocations: 0.7079 MB / 475.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/0.4338, allocations: 347.6 kB / 475.8 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009891/0.4437, allocations: 4.409 MB / 480.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.4449, allocations: 1.233 MB / 481.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001246/0.4461, allocations: 179.7 kB / 481.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.4465, allocations: 99.34 kB / 481.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4466, allocations: 0 / 481.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Templates: time 0.05503/0.5016, allocations: 19.27 MB / 0.4893 GB, free: 8.848 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches