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.001603/0.001603, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2768, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01159/0.2885, allocations: 9.597 MB / 418.4 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00736/0.2959, allocations: 3.15 MB / 421.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.2978, allocations: 31.94 kB / 421.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00212/0.3, allocations: 0.5821 MB / 422.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.3022, allocations: 0.562 MB / 422.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.3033, allocations: 315.5 kB / 423 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.306, allocations: 1.767 MB / 424.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.3071, allocations: 0.6297 MB / 425.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.3082, allocations: 0.6772 MB / 426.1 MB, free: 120 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.3093, allocations: 0.739 MB / 426.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003462/0.3097, allocations: 160 kB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006507/0.3104, allocations: 204 kB / 427.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000395/0.3108, allocations: 330.8 kB / 427.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.3121, allocations: 0.801 MB / 428.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.3146, allocations: 1.989 MB / 430.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3146, allocations: 0 / 430.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3147, allocations: 4 kB / 430.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.715e-05/0.3147, allocations: 4 kB / 430.3 MB, free: 11.89 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.003971/0.3187, allocations: 1.793 MB / 432.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.3188, allocations: 16.02 kB / 432.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003256/0.3191, allocations: 165 kB / 432.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007687/0.3199, allocations: 199 kB / 432.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.3216, allocations: 0.8289 MB / 433.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3218, allocations: 116.4 kB / 433.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.322, allocations: 115.8 kB / 433.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.324, allocations: 1.146 MB / 434.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.37e-05/0.324, allocations: 4 kB / 434.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.855e-05/0.3241, allocations: 48 kB / 434.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.3242, allocations: 24 kB / 434.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.3258, allocations: 0.7574 MB / 435.5 MB, free: 6.465 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.006321/0.3322, allocations: 3.91 MB / 439.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.3337, allocations: 0.5921 MB / 440 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005078/0.3342, allocations: 270.9 kB / 440.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.3343, allocations: 12.55 kB / 440.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006447/0.335, allocations: 291.4 kB / 440.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.867e-06/0.335, allocations: 4 kB / 440.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004942/0.3399, allocations: 2.077 MB / 442.6 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/0.3401, allocations: 475.2 kB / 443.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/0.3419, allocations: 1.101 MB / 444.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.342, allocations: 41.7 kB / 444.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006717/0.3427, allocations: 0.6544 MB / 444.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.343, allocations: 228.8 kB / 445.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003827/0.3434, allocations: 202.6 kB / 445.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3435, allocations: 341.9 kB / 445.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/0.3441, allocations: 254.4 kB / 445.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009447/0.3451, allocations: 0.713 MB / 446.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.3465, allocations: 0.9414 MB / 447.6 MB, free: 9.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.3466, allocations: 4 kB / 447.6 MB, free: 9.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00227/0.3488, allocations: 1.138 MB / 448.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.263e-05/0.3489, allocations: 71.39 kB / 448.8 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/0.349, allocations: 12 kB / 448.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.3496, allocations: 161.8 kB / 448.9 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006855/0.3503, allocations: 203.6 kB / 449.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004335/0.3547, allocations: 3.906 MB / 453 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.3558, allocations: 71.95 kB / 453.1 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.3559, allocations: 44 kB / 453.2 MB, free: 3.637 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.0005674/0.3565, allocations: 293.6 kB / 453.4 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.3568, allocations: 122.6 kB / 453.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.3583, allocations: 0.7077 MB / 454.3 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.3583, allocations: 8 kB / 454.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3583, allocations: 0 / 454.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001327/0.3596, allocations: 0.9568 MB / 455.2 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.3628, allocations: 1.789 MB / 457 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.3629, allocations: 0 / 457 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/0.3634, allocations: 103.9 kB / 457.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004602/0.3638, allocations: 129.9 kB / 457.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/0.3639, allocations: 15.98 kB / 457.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003407/0.3673, allocations: 3.599 MB / 460.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3673, allocations: 0 / 460.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.3692, allocations: 1.042 MB / 461.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005897/0.3698, allocations: 259.6 kB / 462.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.3701, allocations: 12 kB / 462.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007602/0.3709, allocations: 48.08 kB / 462.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.371, allocations: 56.38 kB / 462.3 MB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.3711, allocations: 23.98 kB / 462.3 MB, free: 9.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001209/0.3723, allocations: 0.7445 MB / 463 MB, free: 9.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3723, allocations: 0 / 463 MB, free: 9.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001205/0.3735, allocations: 312.1 kB / 463.3 MB, free: 8.875 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.002269/0.3758, allocations: 1.632 MB / 465 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.3779, allocations: 1.099 MB / 466.1 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.3779, allocations: 0 / 466.1 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009625/0.3789, allocations: 0.5525 MB / 466.6 MB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.3806, allocations: 320 kB / 466.9 MB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.3964, allocations: 9.733 MB / 476.7 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009372/0.3974, allocations: 1.086 MB / 477.8 MB, free: 9.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000718/0.3981, allocations: 145.8 kB / 477.9 MB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000763/0.3989, allocations: 471.3 kB / 478.4 MB, free: 9.148 MB / 398.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3989, allocations: 0 / 478.4 MB, free: 9.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06845/0.4674, allocations: 29.69 MB / 0.4961 GB, free: 11.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.43, allocations: 18.69 kB / 0.4962 GB, free: 11.83 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 & /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