Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 112.8 kB / 17.28 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 189.3 kB / 18.2 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.268/1.268, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 47.92 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07592/0.07699, allocations: 46.62 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01008/0.0871, allocations: 9.495 MB / 336.4 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004953/0.0921, allocations: 3.078 MB / 339.5 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.0932, allocations: 27.94 kB / 339.5 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001474/0.09469, allocations: 0.5245 MB / 340 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.09595, allocations: 496.4 kB / 340.5 MB, free: 7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005662/0.09653, allocations: 275.7 kB / 340.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.09814, allocations: 1.755 MB / 342.5 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007741/0.09893, allocations: 0.6414 MB / 343.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007553/0.09969, allocations: 0.6654 MB / 343.8 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/0.1004, allocations: 0.735 MB / 344.6 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.1006, allocations: 164 kB / 344.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000329/0.1009, allocations: 204 kB / 344.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.1012, allocations: 330.8 kB / 345.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006458/0.1018, allocations: 0.8087 MB / 346.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.1034, allocations: 1.954 MB / 348 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1035, allocations: 0 / 348 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1035, allocations: 0 / 348 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.441e-05/0.1035, allocations: 4 kB / 348 MB, free: 15.44 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.002869/0.1064, allocations: 1.793 MB / 349.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1064, allocations: 8.031 kB / 349.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001852/0.1066, allocations: 172.9 kB / 350 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.1072, allocations: 195 kB / 350.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.1083, allocations: 0.8172 MB / 351 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.1085, allocations: 116.4 kB / 351.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.1086, allocations: 115.8 kB / 351.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.1104, allocations: 1.146 MB / 352.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.1104, allocations: 11.89 kB / 352.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-05/0.1105, allocations: 44 kB / 352.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.1106, allocations: 27.94 kB / 352.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.112, allocations: 0.7613 MB / 353.2 MB, free: 10.02 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.005339/0.1173, allocations: 3.949 MB / 357.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.1188, allocations: 0.5813 MB / 357.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004675/0.1193, allocations: 274.9 kB / 358 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.1193, allocations: 12.55 kB / 358 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006164/0.12, allocations: 291.4 kB / 358.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.655e-06/0.12, allocations: 3.938 kB / 358.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004242/0.1242, allocations: 2.077 MB / 360.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001679/0.1244, allocations: 479.2 kB / 360.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.1257, allocations: 1.101 MB / 361.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/0.1257, allocations: 41.7 kB / 362 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.1262, allocations: 0.6428 MB / 362.6 MB, free: 132 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.1264, allocations: 232.9 kB / 362.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.1266, allocations: 206.7 kB / 363.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1267, allocations: 341.9 kB / 363.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/0.1272, allocations: 246.5 kB / 363.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007644/0.128, allocations: 0.7091 MB / 364.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.1292, allocations: 0.9453 MB / 365.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1293, allocations: 4 kB / 365.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001935/0.1312, allocations: 1.138 MB / 366.4 MB, free: 11.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.1312, allocations: 63.41 kB / 366.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1313, allocations: 12 kB / 366.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005352/0.1318, allocations: 165.8 kB / 366.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000621/0.1324, allocations: 203.7 kB / 366.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003807/0.1363, allocations: 3.904 MB / 370.8 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.1373, allocations: 75.91 kB / 370.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.525e-05/0.1374, allocations: 47.98 kB / 370.9 MB, free: 7.152 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.0004404/0.1378, allocations: 293.5 kB / 371.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.138, allocations: 130.5 kB / 371.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.1394, allocations: 0.7038 MB / 372 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1394, allocations: 4 kB / 372 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.1394, allocations: 11.94 kB / 372 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001271/0.1407, allocations: 0.9529 MB / 373 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.1434, allocations: 1.786 MB / 374.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1434, allocations: 4 kB / 374.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.1438, allocations: 107.9 kB / 374.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004198/0.1443, allocations: 141.7 kB / 375 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.1443, allocations: 12 kB / 375 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1374/0.2817, allocations: 3.585 MB / 378.6 MB, free: 51.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.2817, allocations: 2.625 kB / 378.6 MB, free: 51.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.2838, allocations: 1.045 MB / 379.7 MB, free: 50.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.2843, allocations: 256.6 kB / 379.9 MB, free: 50.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/0.2844, allocations: 20.25 kB / 379.9 MB, free: 50.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006407/0.2851, allocations: 46.88 kB / 380 MB, free: 50.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.2853, allocations: 54.3 kB / 380 MB, free: 50.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.2853, allocations: 18.67 kB / 380 MB, free: 50.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001216/0.2865, allocations: 0.7488 MB / 380.8 MB, free: 50.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2865, allocations: 0 / 380.8 MB, free: 50.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001158/0.2877, allocations: 313.9 kB / 381.1 MB, free: 50.65 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.002185/0.2899, allocations: 1.621 MB / 382.7 MB, free: 49.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.2922, allocations: 1.118 MB / 383.8 MB, free: 49.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2922, allocations: 1.312 kB / 383.8 MB, free: 49.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.2931, allocations: 0.5561 MB / 384.4 MB, free: 48.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.2947, allocations: 330.7 kB / 384.7 MB, free: 48.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.3103, allocations: 11.18 MB / 395.9 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/0.3109, allocations: 1.084 MB / 397 MB, free: 40.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007678/0.3117, allocations: 148.9 kB / 397.1 MB, free: 40.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000489/0.3122, allocations: 472.9 kB / 397.6 MB, free: 40.59 MB / 318.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3122, allocations: 1.656 kB / 397.6 MB, free: 40.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05304/0.3653, allocations: 28.41 MB / 426 MB, free: 15.29 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.3655, allocations: 259.3 kB / 426.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.519/2.884, allocations: 3.938 kB / 426.3 MB, free: 15.02 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches