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.001322/0.001322, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 71.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.314, allocations: 50.54 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0126/0.3266, allocations: 9.603 MB / 418.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006397/0.3331, allocations: 3.146 MB / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.3346, allocations: 27.94 kB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.3367, allocations: 0.586 MB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001907/0.3386, allocations: 0.5541 MB / 422.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.3393, allocations: 319.5 kB / 423 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002304/0.3417, allocations: 1.767 MB / 424.8 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00099/0.3427, allocations: 0.6336 MB / 425.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.3437, allocations: 0.6693 MB / 426.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009695/0.3447, allocations: 0.7469 MB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002222/0.3449, allocations: 156 kB / 427 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003632/0.3453, allocations: 204 kB / 427.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002853/0.3456, allocations: 330.8 kB / 427.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007968/0.3464, allocations: 0.8049 MB / 428.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002336/0.3487, allocations: 1.992 MB / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3487, allocations: 3.938 kB / 430.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3487, allocations: 0 / 430.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.3488, allocations: 0 / 430.3 MB, free: 11.86 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.003654/0.3524, allocations: 1.834 MB / 432.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3525, allocations: 8.031 kB / 432.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002075/0.3527, allocations: 164.9 kB / 432.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006017/0.3533, allocations: 207.9 kB / 432.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.3549, allocations: 0.8413 MB / 433.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.355, allocations: 112.4 kB / 433.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.3552, allocations: 111.9 kB / 433.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.3572, allocations: 1.146 MB / 434.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.3573, allocations: 4 kB / 434.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3574, allocations: 48 kB / 434.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.3574, allocations: 28 kB / 434.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.3591, allocations: 0.7574 MB / 435.6 MB, free: 6.391 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.006335/0.3654, allocations: 3.939 MB / 439.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.367, allocations: 0.5764 MB / 440.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00055/0.3676, allocations: 266.9 kB / 440.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.3677, allocations: 12.55 kB / 440.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006534/0.3683, allocations: 303.5 kB / 440.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.585e-06/0.3683, allocations: 0 / 440.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.005056/0.3734, allocations: 2.102 MB / 442.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002726/0.3737, allocations: 471.2 kB / 443.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.3753, allocations: 1.113 MB / 444.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.79e-05/0.3754, allocations: 37.7 kB / 444.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006088/0.376, allocations: 0.656 MB / 445 MB, free: 12.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.3763, allocations: 246 kB / 445.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.3766, allocations: 198.8 kB / 445.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3768, allocations: 341.9 kB / 445.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005786/0.3774, allocations: 250.4 kB / 446 MB, free: 11.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009966/0.3784, allocations: 0.713 MB / 446.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.3799, allocations: 0.9492 MB / 447.7 MB, free: 9.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3799, allocations: 4 kB / 447.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002287/0.3822, allocations: 1.138 MB / 448.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.962e-05/0.3823, allocations: 74.3 kB / 448.9 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.3823, allocations: 12 kB / 448.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006511/0.383, allocations: 169.5 kB / 449.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/0.3837, allocations: 203.7 kB / 449.3 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005009/0.3888, allocations: 3.896 MB / 453.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.3899, allocations: 63.86 kB / 453.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.062e-05/0.39, allocations: 48.11 kB / 453.3 MB, free: 3.508 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.0005664/0.3906, allocations: 289.5 kB / 453.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.3908, allocations: 139.3 kB / 453.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.3923, allocations: 0.7076 MB / 454.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.3924, allocations: 8 kB / 454.4 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3924, allocations: 0 / 454.4 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001512/0.3939, allocations: 0.9568 MB / 455.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.3971, allocations: 1.786 MB / 457.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3971, allocations: 4 kB / 457.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005041/0.3977, allocations: 103.9 kB / 457.3 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004624/0.3981, allocations: 125.6 kB / 457.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.3982, allocations: 19.98 kB / 457.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004169/0.4024, allocations: 3.591 MB / 461 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4024, allocations: 4 kB / 461 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.4045, allocations: 1.055 MB / 462.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006798/0.4052, allocations: 260.2 kB / 462.3 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4054, allocations: 20.12 kB / 462.3 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.406, allocations: 43.91 kB / 462.4 MB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4062, allocations: 60.42 kB / 462.4 MB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.4062, allocations: 19.98 kB / 462.4 MB, free: 9.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.4075, allocations: 0.7445 MB / 463.2 MB, free: 9.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4075, allocations: 0 / 463.2 MB, free: 9.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001254/0.4088, allocations: 308 kB / 463.5 MB, free: 8.727 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.002618/0.4114, allocations: 1.635 MB / 465.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.4137, allocations: 1.107 MB / 466.2 MB, free: 5.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.4137, allocations: 4.719 kB / 466.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.4148, allocations: 0.5474 MB / 466.8 MB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.4163, allocations: 324.1 kB / 467.1 MB, free: 4.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.4323, allocations: 9.797 MB / 476.9 MB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008763/0.4333, allocations: 1.082 MB / 478 MB, free: 9.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006564/0.4339, allocations: 149.8 kB / 478.1 MB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006306/0.4346, allocations: 467.3 kB / 478.6 MB, free: 8.926 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4346, allocations: 0 / 478.6 MB, free: 8.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07936/0.5139, allocations: 29.1 MB / 0.4958 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.28/15.79, allocations: 15.27 kB / 0.4958 GB, free: 12.19 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.1.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