Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_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.001416/0.001416, allocations: 113.2 kB / 17.73 MB, free: 5.312 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.001486/0.001486, allocations: 188.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.92 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.08138, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.1791/0.2605, allocations: 9.547 MB / 384.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006399/0.267, allocations: 3.124 MB / 387.3 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.2684, allocations: 26.88 kB / 387.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001957/0.2704, allocations: 0.606 MB / 388 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.2723, allocations: 0.5918 MB / 388.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009545/0.2733, allocations: 315.2 kB / 388.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.2757, allocations: 1.767 MB / 390.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009005/0.2766, allocations: 0.6367 MB / 391.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001114/0.2777, allocations: 0.6745 MB / 391.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.2786, allocations: 0.7408 MB / 392.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002284/0.2788, allocations: 158.2 kB / 392.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004536/0.2793, allocations: 196.1 kB / 393 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.2796, allocations: 333.7 kB / 393.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006988/0.2803, allocations: 0.8105 MB / 394.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002191/0.2825, allocations: 1.992 MB / 396.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2825, allocations: 4 kB / 396.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2825, allocations: 1.344 kB / 396.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.973e-05/0.2825, allocations: 0 / 396.2 MB, free: 2.094 MB / 318.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.003415/0.286, allocations: 1.836 MB / 398 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.286, allocations: 10.38 kB / 398 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002156/0.2862, allocations: 165.1 kB / 398.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000675/0.2869, allocations: 210.3 kB / 398.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.2885, allocations: 0.8391 MB / 399.2 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.2887, allocations: 110.9 kB / 399.3 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.2889, allocations: 120.3 kB / 399.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/0.2909, allocations: 1.137 MB / 400.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.912e-05/0.291, allocations: 3.406 kB / 400.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.753e-05/0.2911, allocations: 47.95 kB / 400.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.2911, allocations: 25.12 kB / 400.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.2927, allocations: 0.7669 MB / 401.4 MB, free: 15.05 MB / 334.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.006062/0.2988, allocations: 3.93 MB / 405.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.3003, allocations: 0.588 MB / 405.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.3009, allocations: 268 kB / 406.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.93e-05/0.3009, allocations: 11.39 kB / 406.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000622/0.3015, allocations: 304.6 kB / 406.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.976e-06/0.3016, allocations: 288 / 406.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005071/0.3066, allocations: 2.096 MB / 408.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002288/0.3069, allocations: 472.8 kB / 409.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.3086, allocations: 1.108 MB / 410.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.3087, allocations: 42.95 kB / 410.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005349/0.3092, allocations: 0.6583 MB / 410.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.3094, allocations: 247.6 kB / 411.1 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.3097, allocations: 195.5 kB / 411.3 MB, free: 8.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3098, allocations: 342.8 kB / 411.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.3104, allocations: 245.4 kB / 411.9 MB, free: 7.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008893/0.3113, allocations: 0.7121 MB / 412.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3127, allocations: 0.9502 MB / 413.5 MB, free: 6.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3127, allocations: 3.312 kB / 413.5 MB, free: 6.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002092/0.3148, allocations: 1.146 MB / 414.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.789e-05/0.3149, allocations: 65.8 kB / 414.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.3149, allocations: 13.5 kB / 414.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005568/0.3155, allocations: 167.5 kB / 414.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.3161, allocations: 210.3 kB / 415.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/0.3203, allocations: 3.882 MB / 419 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.3216, allocations: 63.84 kB / 419.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.47e-05/0.3217, allocations: 45.12 kB / 419.1 MB, free: 1.57 MB / 334.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.0005624/0.3222, allocations: 297 kB / 419.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.3224, allocations: 133.1 kB / 419.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.3239, allocations: 0.7084 MB / 420.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.324, allocations: 6.125 kB / 420.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.324, allocations: 1.531 kB / 420.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001372/0.3253, allocations: 0.9634 MB / 421.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.3281, allocations: 1.789 MB / 423 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3281, allocations: 4 kB / 423 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.3286, allocations: 108.1 kB / 423.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004216/0.3291, allocations: 121.6 kB / 423.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.3291, allocations: 16 kB / 423.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003098/0.3322, allocations: 3.597 MB / 426.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3322, allocations: 4 kB / 426.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.334, allocations: 1.055 MB / 427.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000491/0.3345, allocations: 256.3 kB / 428.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.3347, allocations: 20 kB / 428.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.3353, allocations: 43.89 kB / 428.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3354, allocations: 56.38 kB / 428.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.3355, allocations: 23.98 kB / 428.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001005/0.3365, allocations: 0.7445 MB / 429.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3365, allocations: 0 / 429.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001123/0.3376, allocations: 304 kB / 429.3 MB, free: 7.387 MB / 350.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.002094/0.3397, allocations: 1.628 MB / 431 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.3417, allocations: 1.103 MB / 432.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3417, allocations: 15.81 kB / 432.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008848/0.3426, allocations: 0.549 MB / 432.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.3441, allocations: 328.4 kB / 433 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.3578, allocations: 9.775 MB / 442.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.3585, allocations: 1.082 MB / 443.8 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005927/0.3591, allocations: 153.8 kB / 444 MB, free: 8.043 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005142/0.3596, allocations: 467.3 kB / 444.4 MB, free: 7.586 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3596, allocations: 0 / 444.4 MB, free: 7.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06034/0.42, allocations: 29.09 MB / 473.5 MB, free: 10.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.05, allocations: 11.72 kB / 473.5 MB, free: 10.38 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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