Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.00105/0.00105, allocations: 188 kB / 18 MB, free: 5.102 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2733, allocations: 49.45 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01066/0.284, allocations: 9.588 MB / 409.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005472/0.2895, allocations: 3.107 MB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.2905, allocations: 27.94 kB / 413 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.2922, allocations: 0.6212 MB / 413.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001664/0.2939, allocations: 0.5854 MB / 414.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007341/0.2946, allocations: 319.5 kB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.2966, allocations: 1.759 MB / 416.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008556/0.2974, allocations: 0.6375 MB / 416.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008631/0.2983, allocations: 0.6849 MB / 417.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008646/0.2992, allocations: 0.739 MB / 418.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002067/0.2994, allocations: 164 kB / 418.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003668/0.2998, allocations: 199.9 kB / 418.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002489/0.3, allocations: 326.8 kB / 419 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007768/0.3008, allocations: 0.8048 MB / 419.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00214/0.303, allocations: 1.984 MB / 421.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.303, allocations: 0 / 421.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.303, allocations: 0 / 421.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.303, allocations: 0 / 421.8 MB, free: 3.156 MB / 334.1 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.003283/0.3063, allocations: 1.842 MB / 423.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.3064, allocations: 11.89 kB / 423.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000257/0.3066, allocations: 164.9 kB / 423.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000593/0.3072, allocations: 211.9 kB / 424 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3087, allocations: 0.8375 MB / 424.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.3088, allocations: 112.4 kB / 425 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.309, allocations: 115.9 kB / 425.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.3109, allocations: 1.142 MB / 426.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.3109, allocations: 3.953 kB / 426.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.394e-05/0.311, allocations: 48 kB / 426.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.3111, allocations: 28 kB / 426.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.3126, allocations: 0.7574 MB / 427 MB, free: 13.67 MB / 350.1 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.00612/0.3187, allocations: 3.927 MB / 431 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.3203, allocations: 0.5852 MB / 431.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005054/0.3208, allocations: 269.7 kB / 431.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.916e-05/0.3208, allocations: 8.562 kB / 431.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006325/0.3215, allocations: 299.3 kB / 432.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.376e-06/0.3215, allocations: 3.938 kB / 432.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004851/0.3264, allocations: 2.095 MB / 434.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002758/0.3267, allocations: 487.2 kB / 434.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.3282, allocations: 1.105 MB / 435.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.89e-05/0.3282, allocations: 45.7 kB / 435.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005071/0.3287, allocations: 0.6521 MB / 436.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3289, allocations: 238 kB / 436.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002766/0.3292, allocations: 198.8 kB / 436.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3294, allocations: 345.9 kB / 437.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005279/0.3299, allocations: 250.5 kB / 437.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008908/0.3308, allocations: 0.713 MB / 438.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.3322, allocations: 0.9414 MB / 439.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3322, allocations: 0 / 439.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002009/0.3342, allocations: 1.15 MB / 440.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.25e-05/0.3343, allocations: 63.41 kB / 440.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.3343, allocations: 12 kB / 440.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005658/0.3349, allocations: 172.9 kB / 440.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006551/0.3355, allocations: 207.7 kB / 440.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004252/0.3398, allocations: 3.885 MB / 444.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009155/0.3407, allocations: 63.91 kB / 444.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.5e-05/0.3408, allocations: 51.94 kB / 444.8 MB, free: 10.8 MB / 366.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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.0004558/0.3413, allocations: 291 kB / 445 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.3414, allocations: 139.3 kB / 445.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.3429, allocations: 0.7037 MB / 445.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3429, allocations: 12 kB / 445.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.3429, allocations: 4 kB / 445.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00132/0.3443, allocations: 0.9529 MB / 446.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.347, allocations: 1.793 MB / 448.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.347, allocations: 0 / 448.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004718/0.3474, allocations: 103.9 kB / 448.7 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004025/0.3479, allocations: 129.8 kB / 448.9 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.3479, allocations: 15.98 kB / 448.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003354/0.3513, allocations: 3.584 MB / 452.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3513, allocations: 4.031 kB / 452.5 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.3531, allocations: 1.063 MB / 453.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.3535, allocations: 256.3 kB / 453.8 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.3537, allocations: 16 kB / 453.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.3543, allocations: 44.09 kB / 453.8 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.3544, allocations: 64.36 kB / 453.9 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.3545, allocations: 23.94 kB / 453.9 MB, free: 1.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001011/0.3555, allocations: 0.7445 MB / 454.7 MB, free: 316 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3555, allocations: 0 / 454.7 MB, free: 316 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001029/0.3566, allocations: 308 kB / 455 MB, free: 8 kB / 366.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,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.002162/0.3587, allocations: 1.64 MB / 456.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.3607, allocations: 1.099 MB / 457.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3607, allocations: 0.875 kB / 457.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009049/0.3616, allocations: 0.5511 MB / 458.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.3631, allocations: 335.5 kB / 458.6 MB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.3777, allocations: 9.771 MB / 468.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.3786, allocations: 1.082 MB / 469.4 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007621/0.3793, allocations: 153.8 kB / 469.6 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005701/0.3799, allocations: 475.3 kB / 470.1 MB, free: 216 kB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3799, allocations: 0 / 470.1 MB, free: 216 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06714/0.4471, allocations: 29.09 MB / 499.1 MB, free: 3.547 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.21, allocations: 13.09 kB / 499.2 MB, free: 3.539 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches