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.001365/0.001365, allocations: 121.7 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.001458/0.001458, allocations: 202 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.406/1.406, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 59.91 kB / 358.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2547, allocations: 50.55 MB / 408.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01281/0.2675, allocations: 9.602 MB / 418.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005724/0.2733, allocations: 3.146 MB / 421.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.2744, allocations: 27.94 kB / 421.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001822/0.2763, allocations: 0.5938 MB / 422.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002255/0.2786, allocations: 0.558 MB / 422.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.2796, allocations: 315.5 kB / 423.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.2818, allocations: 1.763 MB / 424.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008872/0.2827, allocations: 0.6336 MB / 425.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009501/0.2836, allocations: 0.6771 MB / 426.2 MB, free: 4 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009818/0.2846, allocations: 0.743 MB / 426.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002408/0.2849, allocations: 160 kB / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.2853, allocations: 192 kB / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002964/0.2856, allocations: 334.8 kB / 427.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008599/0.2865, allocations: 0.801 MB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002295/0.2888, allocations: 1.988 MB / 430.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2888, allocations: 4 kB / 430.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2888, allocations: 7.938 kB / 430.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.2888, allocations: 0 / 430.4 MB, free: 11.77 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.003142/0.292, allocations: 1.838 MB / 432.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.292, allocations: 12.03 kB / 432.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001833/0.2922, allocations: 161 kB / 432.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005425/0.2928, allocations: 203.9 kB / 432.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.2941, allocations: 0.8374 MB / 433.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.2943, allocations: 116.4 kB / 433.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000216/0.2945, allocations: 111.9 kB / 433.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.2972, allocations: 1.154 MB / 434.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.224e-05/0.2973, allocations: 0 / 434.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.2974, allocations: 48 kB / 434.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/0.2974, allocations: 24 kB / 434.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.2993, allocations: 0.7574 MB / 435.6 MB, free: 6.297 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.005477/0.3048, allocations: 3.931 MB / 439.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.3063, allocations: 0.586 MB / 440.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.3068, allocations: 270.9 kB / 440.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.3069, allocations: 4.562 kB / 440.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005898/0.3075, allocations: 291.4 kB / 440.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.245e-06/0.3075, allocations: 4 kB / 440.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004414/0.3119, allocations: 2.102 MB / 442.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002646/0.3122, allocations: 479.2 kB / 443.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/0.3141, allocations: 1.105 MB / 444.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.377e-05/0.3142, allocations: 41.7 kB / 444.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007961/0.315, allocations: 0.6599 MB / 445.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.3153, allocations: 242 kB / 445.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004143/0.3158, allocations: 198.8 kB / 445.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.316, allocations: 345.9 kB / 445.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000804/0.3168, allocations: 250.4 kB / 446.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.3179, allocations: 0.7169 MB / 446.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3194, allocations: 0.9375 MB / 447.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3194, allocations: 4 kB / 447.7 MB, free: 9.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002309/0.3217, allocations: 1.15 MB / 448.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.497e-05/0.3218, allocations: 63.41 kB / 449 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.3218, allocations: 12 kB / 449 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006288/0.3225, allocations: 172.9 kB / 449.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/0.3231, allocations: 203.7 kB / 449.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009633/0.3328, allocations: 3.902 MB / 453.2 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.3344, allocations: 64.05 kB / 453.3 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.3345, allocations: 48.06 kB / 453.3 MB, free: 3.414 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.0007554/0.3353, allocations: 289.5 kB / 453.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.3356, allocations: 131.2 kB / 453.8 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.3379, allocations: 0.7116 MB / 454.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/0.3379, allocations: 4 kB / 454.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3379, allocations: 0 / 454.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00224/0.3402, allocations: 0.9607 MB / 455.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004388/0.3446, allocations: 1.786 MB / 457.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3446, allocations: 0 / 457.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007075/0.3453, allocations: 103.9 kB / 457.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006171/0.346, allocations: 129.8 kB / 457.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.346, allocations: 12 kB / 457.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/0.3514, allocations: 3.599 MB / 461.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3515, allocations: 0 / 461.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.3546, allocations: 1.059 MB / 462.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/0.3553, allocations: 264.2 kB / 462.4 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/0.3555, allocations: 20.11 kB / 462.4 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009372/0.3565, allocations: 39.97 kB / 462.4 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.3567, allocations: 60.36 kB / 462.5 MB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.3568, allocations: 20 kB / 462.5 MB, free: 9.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001643/0.3585, allocations: 0.7484 MB / 463.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3585, allocations: 0 / 463.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001755/0.3602, allocations: 308 kB / 463.6 MB, free: 8.629 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.00343/0.3637, allocations: 1.64 MB / 465.2 MB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003125/0.3668, allocations: 1.103 MB / 466.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.3669, allocations: 3.906 kB / 466.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.3683, allocations: 0.5527 MB / 466.9 MB, free: 5.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.3705, allocations: 330.9 kB / 467.2 MB, free: 4.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/0.393, allocations: 9.778 MB / 477 MB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.3941, allocations: 1.082 MB / 478 MB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008735/0.395, allocations: 149.8 kB / 478.2 MB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008816/0.3959, allocations: 471.3 kB / 478.6 MB, free: 8.832 MB / 398.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3959, allocations: 0 / 478.6 MB, free: 8.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1007/0.4966, allocations: 29.1 MB / 0.4958 GB, free: 12.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/15.08, allocations: 26.89 kB / 0.4959 GB, free: 12.09 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.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