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.001096/0.001096, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 60.67 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07957/0.08079, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01042/0.09124, allocations: 9.597 MB / 367.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004991/0.09625, allocations: 3.15 MB / 370.3 MB, free: 1.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008768/0.09715, allocations: 31.94 kB / 370.4 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.09863, allocations: 0.586 MB / 371 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1366/0.2353, allocations: 0.5525 MB / 371.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009503/0.2362, allocations: 316.8 kB / 371.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.2382, allocations: 1.75 MB / 373.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007768/0.239, allocations: 0.6282 MB / 374.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007656/0.2397, allocations: 0.6738 MB / 374.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006769/0.2404, allocations: 0.7432 MB / 375.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.2406, allocations: 158.5 kB / 375.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003677/0.241, allocations: 197.7 kB / 376 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.2412, allocations: 337.3 kB / 376.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005998/0.2418, allocations: 0.8036 MB / 377.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.2435, allocations: 1.96 MB / 379.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2435, allocations: 2.062 kB / 379.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2435, allocations: 4 kB / 379.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.2435, allocations: 0 / 379.1 MB, free: 9.543 MB / 302.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.002752/0.2463, allocations: 1.794 MB / 380.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.2463, allocations: 9.594 kB / 380.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.2465, allocations: 170.2 kB / 381 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005303/0.247, allocations: 197.2 kB / 381.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.2481, allocations: 0.8243 MB / 382.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.2482, allocations: 112.5 kB / 382.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.2484, allocations: 107.8 kB / 382.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.25, allocations: 1.144 MB / 383.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.2501, allocations: 14.72 kB / 383.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/0.2502, allocations: 47.44 kB / 383.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.2502, allocations: 26.38 kB / 383.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.2518, allocations: 0.7557 MB / 384.3 MB, free: 6.637 MB / 302.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.004772/0.2565, allocations: 3.952 MB / 388.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.258, allocations: 0.579 MB / 388.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.2585, allocations: 268 kB / 389 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.2586, allocations: 19.61 kB / 389.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006106/0.2592, allocations: 293.3 kB / 389.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.795e-06/0.2592, allocations: 1.031 kB / 389.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004163/0.2634, allocations: 2.067 MB / 391.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.2635, allocations: 486 kB / 391.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.2647, allocations: 1.107 MB / 393 MB, free: 1.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.2648, allocations: 40.2 kB / 393 MB, free: 1.477 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.2651, allocations: 0.6363 MB / 393.7 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.2652, allocations: 240.1 kB / 393.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.2655, allocations: 196.2 kB / 394.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.43e-05/0.2655, allocations: 346.2 kB / 394.4 MB, free: 264 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.266, allocations: 243.8 kB / 394.7 MB, free: 148 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000797/0.2668, allocations: 0.7122 MB / 395.4 MB, free: 15.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.2681, allocations: 0.9426 MB / 396.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.2682, allocations: 4.312 kB / 396.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00199/0.2702, allocations: 1.138 MB / 397.5 MB, free: 14.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.2702, allocations: 72.92 kB / 397.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.2702, allocations: 12.19 kB / 397.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.2708, allocations: 166.8 kB / 397.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006547/0.2715, allocations: 209 kB / 397.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.2755, allocations: 3.893 MB / 401.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009042/0.2764, allocations: 63.72 kB / 401.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.2765, allocations: 49.39 kB / 401.9 MB, free: 10.27 MB / 318.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.0004033/0.2769, allocations: 297.2 kB / 402.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.277, allocations: 125.9 kB / 402.3 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.2785, allocations: 0.7103 MB / 403.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.2785, allocations: 6.406 kB / 403.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2785, allocations: 0 / 403.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001305/0.2798, allocations: 0.9581 MB / 404 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.2825, allocations: 1.793 MB / 405.8 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2826, allocations: 3.938 kB / 405.8 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.2831, allocations: 112 kB / 405.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004146/0.2835, allocations: 129.6 kB / 406 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.2835, allocations: 19.98 kB / 406.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003306/0.2868, allocations: 3.592 MB / 409.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2869, allocations: 3.984 kB / 409.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.2887, allocations: 1.052 MB / 410.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/0.289, allocations: 247.7 kB / 411 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.2892, allocations: 20 kB / 411 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006247/0.2898, allocations: 35.97 kB / 411 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.29, allocations: 60.42 kB / 411.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.29, allocations: 19.98 kB / 411.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000951/0.291, allocations: 0.7445 MB / 411.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.291, allocations: 0 / 411.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001015/0.292, allocations: 312 kB / 412.1 MB, free: 0.7734 MB / 318.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.2941, allocations: 1.632 MB / 413.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2961, allocations: 1.12 MB / 414.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2961, allocations: 4 kB / 414.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.2971, allocations: 0.5478 MB / 415.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.2985, allocations: 339.4 kB / 415.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.3126, allocations: 10.77 MB / 426.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/0.3133, allocations: 1.082 MB / 427.6 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005938/0.314, allocations: 149.8 kB / 427.8 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000593/0.3146, allocations: 477.1 kB / 428.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3146, allocations: 0 / 428.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06239/0.377, allocations: 28.62 MB / 456.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.89, allocations: 11.78 kB / 456.9 MB, free: 3.496 MB / 366.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