Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009807/0.0009807, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007571/0.0007572, allocations: 90.53 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2492, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008734/0.258, allocations: 8.477 MB / 385.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.2649, allocations: 3.377 MB / 388.5 MB, free: 35.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2662, allocations: 29.97 kB / 388.5 MB, free: 35.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.2677, allocations: 0.5158 MB / 389 MB, free: 35.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.2691, allocations: 490 kB / 389.5 MB, free: 35.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005544/0.2696, allocations: 285.2 kB / 389.8 MB, free: 34.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.271, allocations: 1.676 MB / 391.4 MB, free: 33.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006353/0.2716, allocations: 0.5415 MB / 392 MB, free: 32.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004937/0.2721, allocations: 0.5795 MB / 392.6 MB, free: 32.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005051/0.2726, allocations: 0.6491 MB / 393.2 MB, free: 31.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.2728, allocations: 84 kB / 393.3 MB, free: 31.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003082/0.2731, allocations: 120 kB / 393.4 MB, free: 31.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.2732, allocations: 250.8 kB / 393.6 MB, free: 31.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005037/0.2737, allocations: 0.744 MB / 394.4 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.2749, allocations: 1.86 MB / 396.3 MB, free: 28.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2749, allocations: 0 / 396.3 MB, free: 28.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.2749, allocations: 8 kB / 396.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.2749, allocations: 0 / 396.3 MB, free: 28.62 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.002219/0.2771, allocations: 1.544 MB / 397.8 MB, free: 27.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2772, allocations: 12.03 kB / 397.8 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.2776, allocations: 203 kB / 398 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009698/0.2786, allocations: 0.821 MB / 398.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.2788, allocations: 112.4 kB / 398.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.2789, allocations: 120 kB / 399.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.2804, allocations: 1.151 MB / 400.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/0.2805, allocations: 0 / 400.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/0.2806, allocations: 48 kB / 400.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.2806, allocations: 28 kB / 400.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.2818, allocations: 0.7652 MB / 401.1 MB, free: 23.62 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.00421/0.2861, allocations: 3.976 MB / 405 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.2874, allocations: 0.5989 MB / 405.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.2878, allocations: 277.6 kB / 405.9 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.2879, allocations: 8.562 kB / 405.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005594/0.2884, allocations: 307 kB / 406.2 MB, free: 18.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 2.355e-06/0.2884, allocations: 0 / 406.2 MB, free: 18.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.003796/0.2922, allocations: 2.127 MB / 408.3 MB, free: 16.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.2924, allocations: 479.2 kB / 408.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.2935, allocations: 1.09 MB / 409.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.2935, allocations: 41.7 kB / 409.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.2939, allocations: 0.6467 MB / 410.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.294, allocations: 228.7 kB / 410.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.294, allocations: 24 kB / 410.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.026e-05/0.2941, allocations: 341.9 kB / 411.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/0.2945, allocations: 250.5 kB / 411.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006111/0.2952, allocations: 0.7169 MB / 412.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000985/0.2962, allocations: 0.957 MB / 413.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.2962, allocations: 7.938 kB / 413.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001487/0.2977, allocations: 1.134 MB / 414.2 MB, free: 9.578 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.694e-05/0.2977, allocations: 67.8 kB / 414.3 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.2978, allocations: 16 kB / 414.3 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004956/0.2983, allocations: 161.6 kB / 414.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005751/0.2989, allocations: 219.6 kB / 414.7 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/0.302, allocations: 3.551 MB / 418.2 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008955/0.3029, allocations: 84.02 kB / 418.3 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.563e-05/0.3029, allocations: 47.94 kB / 418.4 MB, free: 5.168 MB / 298.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.0004549/0.3034, allocations: 300.9 kB / 418.6 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3035, allocations: 122.5 kB / 418.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3048, allocations: 0.7233 MB / 419.5 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3048, allocations: 8 kB / 419.5 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3048, allocations: 0 / 419.5 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001156/0.306, allocations: 0.9725 MB / 420.5 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.3083, allocations: 1.813 MB / 422.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3083, allocations: 0 / 422.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.3088, allocations: 111.9 kB / 422.4 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/0.3091, allocations: 125.8 kB / 422.5 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.3092, allocations: 16.11 kB / 422.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.3123, allocations: 3.282 MB / 425.8 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.3124, allocations: 11.95 kB / 425.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.3142, allocations: 1.069 MB / 426.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004562/0.3147, allocations: 255.6 kB / 427.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.3148, allocations: 15.94 kB / 427.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005745/0.3154, allocations: 55.95 kB / 427.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.3156, allocations: 48.5 kB / 427.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/0.3156, allocations: 27.92 kB / 427.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.3166, allocations: 0.7328 MB / 428 MB, free: 10.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3167, allocations: 0 / 428 MB, free: 10.94 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001034/0.3177, allocations: 304 kB / 428.3 MB, free: 10.64 MB / 314.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.000258/0.318, allocations: 139.2 kB / 428.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.32, allocations: 1.112 MB / 429.6 MB, free: 9.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.32, allocations: 0 / 429.6 MB, free: 9.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008986/0.3209, allocations: 0.5589 MB / 430.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.3225, allocations: 317.3 kB / 430.4 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.3263, allocations: 2.84 MB / 433.3 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007197/0.327, allocations: 1.082 MB / 434.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007463/0.3278, allocations: 145.8 kB / 434.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.328, allocations: 79.42 kB / 434.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.328, allocations: 0 / 434.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of Templates: time 0.03082/0.3588, allocations: 16.86 MB / 451.4 MB, free: 3.445 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches