Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001216/0.001216, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 71.86 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2944, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01115/0.3056, allocations: 9.608 MB / 418.4 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006192/0.3118, allocations: 3.146 MB / 421.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.3133, allocations: 27.94 kB / 421.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.3157, allocations: 0.6133 MB / 422.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.3181, allocations: 0.5893 MB / 422.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3192, allocations: 315.5 kB / 423.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002678/0.3219, allocations: 1.767 MB / 424.8 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.3231, allocations: 0.6336 MB / 425.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.3244, allocations: 0.6849 MB / 426.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.3256, allocations: 0.7389 MB / 426.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004117/0.3261, allocations: 160 kB / 427.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006788/0.3268, allocations: 196 kB / 427.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004031/0.3272, allocations: 334.8 kB / 427.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.3286, allocations: 0.8048 MB / 428.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002852/0.3314, allocations: 1.988 MB / 430.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3315, allocations: 3.938 kB / 430.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3315, allocations: 0 / 430.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.082e-05/0.3316, allocations: 0 / 430.4 MB, free: 11.81 MB / 350.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.004129/0.3357, allocations: 1.838 MB / 432.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.3358, allocations: 12.03 kB / 432.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002941/0.3361, allocations: 165 kB / 432.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007187/0.3368, allocations: 203.9 kB / 432.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.3385, allocations: 0.8413 MB / 433.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.3387, allocations: 120.4 kB / 433.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.3389, allocations: 115.9 kB / 433.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.3412, allocations: 1.142 MB / 434.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.127e-05/0.3413, allocations: 4 kB / 434.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.3414, allocations: 48 kB / 434.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.3414, allocations: 24 kB / 434.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.3433, allocations: 0.7574 MB / 435.6 MB, free: 6.332 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.007513/0.3508, allocations: 3.927 MB / 439.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.3525, allocations: 0.5861 MB / 440.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.3531, allocations: 266.9 kB / 440.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.65e-05/0.3531, allocations: 8.562 kB / 440.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000684/0.3538, allocations: 295.1 kB / 440.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.976e-06/0.3539, allocations: 0 / 440.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.005099/0.359, allocations: 2.106 MB / 442.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002348/0.3592, allocations: 483.1 kB / 443.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.3612, allocations: 1.101 MB / 444.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.3613, allocations: 45.7 kB / 444.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005938/0.3619, allocations: 0.656 MB / 445.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.3621, allocations: 242 kB / 445.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000332/0.3625, allocations: 202.8 kB / 445.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3626, allocations: 345.9 kB / 445.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005368/0.3632, allocations: 246.5 kB / 446.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009338/0.3641, allocations: 0.7169 MB / 446.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.3655, allocations: 0.9414 MB / 447.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.3656, allocations: 7.984 kB / 447.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002372/0.368, allocations: 1.138 MB / 448.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.206e-05/0.368, allocations: 63.41 kB / 449 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.3681, allocations: 12.44 kB / 449 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006279/0.3687, allocations: 173.5 kB / 449.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007381/0.3695, allocations: 199.7 kB / 449.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005336/0.3748, allocations: 3.9 MB / 453.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3763, allocations: 72.02 kB / 453.3 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.3765, allocations: 48 kB / 453.3 MB, free: 3.441 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.0006483/0.3771, allocations: 293.5 kB / 453.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003161/0.3774, allocations: 127.2 kB / 453.8 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00171/0.3792, allocations: 0.7038 MB / 454.5 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3792, allocations: 8 kB / 454.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3792, allocations: 0 / 454.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001567/0.3808, allocations: 0.9607 MB / 455.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004399/0.3852, allocations: 1.786 MB / 457.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3852, allocations: 224 / 457.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005037/0.3857, allocations: 107.9 kB / 457.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004777/0.3862, allocations: 125.6 kB / 457.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.3863, allocations: 16 kB / 457.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/0.3901, allocations: 3.599 MB / 461.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3901, allocations: 4.031 kB / 461.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.3921, allocations: 1.062 MB / 462.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006611/0.3928, allocations: 264.2 kB / 462.4 MB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/0.3931, allocations: 16 kB / 462.4 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007781/0.3939, allocations: 35.97 kB / 462.4 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3941, allocations: 68.36 kB / 462.5 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.3941, allocations: 20 kB / 462.5 MB, free: 9.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.3954, allocations: 0.7445 MB / 463.3 MB, free: 8.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3954, allocations: 0 / 463.3 MB, free: 8.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001278/0.3967, allocations: 308 kB / 463.6 MB, free: 8.656 MB / 382.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.002362/0.399, allocations: 1.632 MB / 465.2 MB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.4012, allocations: 1.096 MB / 466.3 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.4012, allocations: 7.906 kB / 466.3 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009741/0.4022, allocations: 0.5516 MB / 466.9 MB, free: 5.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.404, allocations: 331.2 kB / 467.2 MB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/0.4204, allocations: 9.784 MB / 477 MB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008896/0.4213, allocations: 1.082 MB / 478 MB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000629/0.4219, allocations: 153.8 kB / 478.2 MB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006134/0.4226, allocations: 471.3 kB / 478.7 MB, free: 8.863 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4226, allocations: 0 / 478.7 MB, free: 8.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07163/0.4942, allocations: 29.11 MB / 0.4959 GB, free: 12.13 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/14.25, allocations: 11.67 kB / 0.4959 GB, free: 12.12 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches