Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001503/0.001503, allocations: 192.2 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 229.5 MB / 247.7 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007232/0.0007234, allocations: 90.31 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003541, allocations: 4 kB / 360.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2553, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.006807/0.2622, allocations: 8.529 MB / 420.6 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00444/0.2667, allocations: 3.569 MB / 424.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007553/0.2675, allocations: 27.94 kB / 424.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.2687, allocations: 0.505 MB / 424.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.2697, allocations: 0.4926 MB / 425.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005134/0.2702, allocations: 275.7 kB / 425.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.2713, allocations: 1.665 MB / 427.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005995/0.2719, allocations: 0.5532 MB / 427.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005704/0.2725, allocations: 0.5755 MB / 428.2 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004986/0.273, allocations: 0.6569 MB / 428.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.2731, allocations: 87.98 kB / 429 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002762/0.2734, allocations: 124 kB / 429.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.2735, allocations: 250.8 kB / 429.4 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004755/0.274, allocations: 0.7402 MB / 430.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.2752, allocations: 1.864 MB / 432 MB, free: 5.773 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2752, allocations: 0 / 432 MB, free: 5.773 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2752, allocations: 0 / 432 MB, free: 5.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.2752, allocations: 0 / 432 MB, free: 5.773 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002253/0.2775, allocations: 1.555 MB / 433.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2775, allocations: 12.03 kB / 433.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004647/0.278, allocations: 199 kB / 433.7 MB, free: 3.941 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009698/0.279, allocations: 0.8172 MB / 434.5 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.2791, allocations: 112.4 kB / 434.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.2792, allocations: 120 kB / 434.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.2808, allocations: 1.142 MB / 435.9 MB, free: 1.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.2809, allocations: 3.984 kB / 435.9 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.091e-05/0.281, allocations: 48 kB / 436 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.281, allocations: 24 kB / 436 MB, free: 1.535 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.2823, allocations: 0.7691 MB / 436.8 MB, free: 0.7695 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005421/0.2877, allocations: 3.965 MB / 440.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.2893, allocations: 0.6078 MB / 441.3 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.2898, allocations: 278 kB / 441.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.2898, allocations: 12.53 kB / 441.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006241/0.2905, allocations: 307.1 kB / 441.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.946e-06/0.2905, allocations: 0 / 441.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004618/0.2951, allocations: 2.12 MB / 444 MB, free: 9.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002112/0.2953, allocations: 479.2 kB / 444.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.2968, allocations: 1.09 MB / 445.6 MB, free: 7.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.2968, allocations: 45.7 kB / 445.6 MB, free: 7.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004714/0.2973, allocations: 0.6427 MB / 446.3 MB, free: 6.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.2975, allocations: 236.7 kB / 446.5 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.2975, allocations: 16 kB / 446.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2977, allocations: 345.9 kB / 446.9 MB, free: 6.195 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.2983, allocations: 254.5 kB / 447.1 MB, free: 5.945 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009149/0.2992, allocations: 0.7169 MB / 447.8 MB, free: 5.016 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.3006, allocations: 0.9532 MB / 448.8 MB, free: 3.895 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3007, allocations: 7.938 kB / 448.8 MB, free: 3.887 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001888/0.3026, allocations: 1.138 MB / 449.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.802e-05/0.3026, allocations: 67.34 kB / 450 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.3026, allocations: 8 kB / 450 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006155/0.3033, allocations: 177.6 kB / 450.2 MB, free: 2.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006638/0.3039, allocations: 203.7 kB / 450.4 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003851/0.3078, allocations: 3.549 MB / 453.9 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.3088, allocations: 83.86 kB / 454 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.544e-05/0.3089, allocations: 44 kB / 454 MB, free: 14.32 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005077/0.3094, allocations: 297.6 kB / 454.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.3096, allocations: 122.5 kB / 454.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.3111, allocations: 0.7194 MB / 455.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3111, allocations: 16.16 kB / 455.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3111, allocations: 4 kB / 455.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001357/0.3125, allocations: 0.9724 MB / 456.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3151, allocations: 1.813 MB / 458 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.3151, allocations: 0 / 458 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004713/0.3156, allocations: 107.9 kB / 458.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000396/0.316, allocations: 129.8 kB / 458.2 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.3161, allocations: 12 kB / 458.2 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.319, allocations: 3.279 MB / 461.5 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.319, allocations: 4.031 kB / 461.5 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.3209, allocations: 1.069 MB / 462.6 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.3213, allocations: 251.6 kB / 462.8 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.3214, allocations: 27.98 kB / 462.8 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006214/0.322, allocations: 51.97 kB / 462.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3222, allocations: 56.42 kB / 463 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.3222, allocations: 20 kB / 463 MB, free: 4.828 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001015/0.3232, allocations: 0.7367 MB / 463.7 MB, free: 4.086 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3232, allocations: 4 kB / 463.7 MB, free: 4.082 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009631/0.3242, allocations: 308.1 kB / 464 MB, free: 3.781 MB / 330.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,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002511/0.3245, allocations: 143 kB / 464.2 MB, free: 3.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.3264, allocations: 1.104 MB / 465.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3264, allocations: 0 / 465.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.3273, allocations: 0.552 MB / 465.8 MB, free: 1.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.3289, allocations: 312.8 kB / 466.1 MB, free: 1.598 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.3325, allocations: 2.842 MB / 469 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006258/0.3331, allocations: 1.086 MB / 470 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005517/0.3337, allocations: 153.8 kB / 470.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.3339, allocations: 79.44 kB / 470.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3339, allocations: 0 / 470.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of Templates: time 0.02797/0.3619, allocations: 16.84 MB / 487.1 MB, free: 12.68 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches