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.001263/0.001263, 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.001357/0.001357, 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.327/1.327, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 65.58 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08276/0.08396, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0103/0.0943, allocations: 9.597 MB / 367.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005579/0.09991, allocations: 3.154 MB / 370.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.1013, allocations: 27.94 kB / 370.4 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.1031, allocations: 0.5937 MB / 371 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.149/0.2521, allocations: 0.5493 MB / 371.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009972/0.2532, allocations: 321.4 kB / 371.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001924/0.2551, allocations: 1.752 MB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000776/0.2559, allocations: 0.6305 MB / 374.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008468/0.2567, allocations: 0.6641 MB / 374.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006674/0.2574, allocations: 0.7509 MB / 375.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.2576, allocations: 159.1 kB / 375.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003521/0.258, allocations: 201.9 kB / 376 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.2582, allocations: 333.2 kB / 376.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006023/0.2588, allocations: 0.8017 MB / 377.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.2605, allocations: 1.956 MB / 379.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2605, allocations: 0 / 379.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2605, allocations: 0 / 379.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.2606, allocations: 1.25 kB / 379.1 MB, free: 9.344 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.003054/0.2636, allocations: 1.797 MB / 380.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2637, allocations: 13.66 kB / 380.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.2638, allocations: 169.1 kB / 381 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005181/0.2644, allocations: 198.9 kB / 381.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.2655, allocations: 0.8147 MB / 382 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.2656, allocations: 112.7 kB / 382.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.2658, allocations: 110.8 kB / 382.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.2674, allocations: 1.149 MB / 383.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.2675, allocations: 5.281 kB / 383.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/0.2676, allocations: 47.52 kB / 383.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.2676, allocations: 26.12 kB / 383.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.269, allocations: 0.7604 MB / 384.2 MB, free: 6.52 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.004675/0.2737, allocations: 3.947 MB / 388.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.2751, allocations: 0.5873 MB / 388.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.2756, allocations: 267.2 kB / 389 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.2756, allocations: 15.16 kB / 389.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005687/0.2762, allocations: 297.4 kB / 389.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.244e-06/0.2762, allocations: 0 / 389.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004009/0.2802, allocations: 2.069 MB / 391.4 MB, free: 2.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.323e-05/0.2803, allocations: 476.9 kB / 391.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.2816, allocations: 1.11 MB / 393 MB, free: 1.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.2816, allocations: 38.86 kB / 393 MB, free: 1.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/0.282, allocations: 0.6479 MB / 393.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.2821, allocations: 229.9 kB / 393.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.2823, allocations: 196.4 kB / 394.1 MB, free: 488 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.996e-05/0.2824, allocations: 348 kB / 394.4 MB, free: 144 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004721/0.2829, allocations: 245.6 kB / 394.7 MB, free: 28 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000858/0.2838, allocations: 0.7079 MB / 395.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.285, allocations: 0.9405 MB / 396.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.285, allocations: 2.906 kB / 396.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001988/0.287, allocations: 1.151 MB / 397.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.081e-05/0.2871, allocations: 69.27 kB / 397.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.2871, allocations: 11.16 kB / 397.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005366/0.2876, allocations: 168.5 kB / 397.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005996/0.2882, allocations: 208.2 kB / 397.9 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.2921, allocations: 3.894 MB / 401.8 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000944/0.293, allocations: 71.77 kB / 401.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.445e-05/0.2931, allocations: 46.84 kB / 401.9 MB, free: 10.14 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.0004332/0.2935, allocations: 295.9 kB / 402.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.2937, allocations: 126.1 kB / 402.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.295, allocations: 0.7047 MB / 403.1 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.295, allocations: 10.19 kB / 403.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.295, allocations: 0 / 403.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001217/0.2963, allocations: 0.9522 MB / 404 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.2991, allocations: 1.804 MB / 405.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.2991, allocations: 0 / 405.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000468/0.2996, allocations: 107.8 kB / 405.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004221/0.3, allocations: 133.8 kB / 406.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.3001, allocations: 15.94 kB / 406.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.3032, allocations: 3.592 MB / 409.7 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3032, allocations: 0 / 409.7 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.3049, allocations: 1.057 MB / 410.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004442/0.3054, allocations: 247.7 kB / 411 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.3056, allocations: 20 kB / 411 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000663/0.3063, allocations: 35.95 kB / 411 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3064, allocations: 60.42 kB / 411.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.3065, allocations: 23.98 kB / 411.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009397/0.3074, allocations: 0.7406 MB / 411.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3074, allocations: 0 / 411.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001095/0.3085, allocations: 312 kB / 412.1 MB, free: 0.668 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.002004/0.3105, allocations: 1.632 MB / 413.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.3126, allocations: 1.112 MB / 414.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3126, allocations: 4.875 kB / 414.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.3134, allocations: 0.5473 MB / 415.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.3148, allocations: 322.8 kB / 415.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.3286, allocations: 10.78 MB / 426.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.3293, allocations: 1.085 MB / 427.6 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005877/0.3299, allocations: 157.8 kB / 427.8 MB, free: 76 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005762/0.3305, allocations: 477.8 kB / 428.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3305, allocations: 0 / 428.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.104/1.434, allocations: 28.64 MB / 456.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/17.06, allocations: 7.797 kB / 456.9 MB, free: 3.398 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 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.mat","/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