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.001365/0.001365, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001405/0.001405, allocations: 190 kB / 18.07 MB, free: 5.414 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.3/1.3, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001669/0.001669, allocations: 47.92 kB / 280.1 MB, free: 3.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1053, allocations: 46.62 MB / 326.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009875/0.1152, allocations: 9.491 MB / 336.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006034/0.1213, allocations: 3.093 MB / 339.3 MB, free: 8.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.1229, allocations: 27.94 kB / 339.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001815/0.1248, allocations: 0.5167 MB / 339.8 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.1266, allocations: 492.4 kB / 340.3 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007408/0.1273, allocations: 279.7 kB / 340.6 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001979/0.1293, allocations: 1.681 MB / 342.3 MB, free: 5.129 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007671/0.1301, allocations: 0.5415 MB / 342.8 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008087/0.1309, allocations: 0.6146 MB / 343.4 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006559/0.1316, allocations: 0.7154 MB / 344.1 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.1317, allocations: 108 kB / 344.2 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.1321, allocations: 147.9 kB / 344.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002391/0.1323, allocations: 286.7 kB / 344.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006648/0.133, allocations: 0.7541 MB / 345.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.1346, allocations: 1.907 MB / 347.3 MB, free: 24 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1346, allocations: 0 / 347.3 MB, free: 24 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1346, allocations: 4 kB / 347.3 MB, free: 20 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.1346, allocations: 0 / 347.3 MB, free: 20 kB / 286.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.003214/0.1379, allocations: 1.796 MB / 349.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1379, allocations: 8.031 kB / 349.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001908/0.1381, allocations: 172.9 kB / 349.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005852/0.1387, allocations: 199 kB / 349.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.14, allocations: 0.8133 MB / 350.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.1401, allocations: 112.4 kB / 350.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.1403, allocations: 115.8 kB / 350.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.1422, allocations: 1.146 MB / 351.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.1423, allocations: 7.844 kB / 351.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.294e-05/0.1424, allocations: 51.98 kB / 351.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/0.1424, allocations: 24 kB / 351.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.144, allocations: 0.7574 MB / 352.5 MB, free: 10.61 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.005654/0.1496, allocations: 3.941 MB / 356.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.1512, allocations: 0.5853 MB / 357 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.1517, allocations: 274.9 kB / 357.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.526e-05/0.1518, allocations: 16.55 kB / 357.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006995/0.1525, allocations: 291.1 kB / 357.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.095e-06/0.1525, allocations: 0 / 357.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004922/0.1575, allocations: 2.08 MB / 359.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002135/0.1577, allocations: 475.2 kB / 360.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.1592, allocations: 1.101 MB / 361.3 MB, free: 1.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.1592, allocations: 41.7 kB / 361.3 MB, free: 1.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/0.1597, allocations: 0.6428 MB / 361.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.1599, allocations: 236.7 kB / 362.2 MB, free: 500 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002703/0.1602, allocations: 198.7 kB / 362.4 MB, free: 296 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1604, allocations: 345.9 kB / 362.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.1609, allocations: 250.5 kB / 363 MB, free: 15.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008471/0.1617, allocations: 0.7053 MB / 363.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.1631, allocations: 0.9453 MB / 364.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1631, allocations: 4 kB / 364.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002198/0.1653, allocations: 1.141 MB / 365.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.915e-05/0.1654, allocations: 71.39 kB / 365.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.1654, allocations: 12 kB / 365.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006103/0.166, allocations: 165.7 kB / 366 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.1667, allocations: 203.6 kB / 366.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004101/0.1708, allocations: 3.55 MB / 369.7 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.172, allocations: 72.02 kB / 369.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.406e-05/0.172, allocations: 51.98 kB / 369.9 MB, free: 8.105 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.0005042/0.1726, allocations: 293.5 kB / 370.2 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.1727, allocations: 130.5 kB / 370.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.1741, allocations: 0.7037 MB / 371 MB, free: 6.949 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1741, allocations: 8 kB / 371 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1742, allocations: 7.984 kB / 371 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001292/0.1754, allocations: 0.949 MB / 371.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.1784, allocations: 1.798 MB / 373.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.1784, allocations: 0 / 373.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005054/0.1789, allocations: 107.8 kB / 373.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004419/0.1794, allocations: 133.8 kB / 374 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.1794, allocations: 12 kB / 374 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003405/0.1828, allocations: 3.283 MB / 377.3 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1828, allocations: 4 kB / 377.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1552/0.338, allocations: 1.05 MB / 378.3 MB, free: 51.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005358/0.3386, allocations: 255 kB / 378.6 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.3388, allocations: 14.92 kB / 378.6 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006502/0.3394, allocations: 46.3 kB / 378.6 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.3396, allocations: 56.27 kB / 378.7 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.3397, allocations: 21.97 kB / 378.7 MB, free: 51.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001215/0.3409, allocations: 0.7448 MB / 379.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3409, allocations: 0.5 kB / 379.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001283/0.3422, allocations: 315.5 kB / 379.8 MB, free: 51.75 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.002128/0.3443, allocations: 1.627 MB / 381.4 MB, free: 51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002072/0.3464, allocations: 1.083 MB / 382.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3464, allocations: 3.719 kB / 382.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000911/0.3473, allocations: 0.5454 MB / 383 MB, free: 50.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.3489, allocations: 306.4 kB / 383.3 MB, free: 50.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/0.3668, allocations: 11.19 MB / 394.5 MB, free: 42.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007109/0.3675, allocations: 1.083 MB / 395.6 MB, free: 42.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008282/0.3684, allocations: 145.8 kB / 395.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.369, allocations: 475.9 kB / 396.2 MB, free: 41.81 MB / 318.1 MB Notification: Performance of SimCode: time 1.483e-06/0.369, allocations: 0 / 396.2 MB, free: 41.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04208/0.4111, allocations: 27.5 MB / 423.7 MB, free: 17.5 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.4113, allocations: 255.2 kB / 424 MB, free: 17.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/2.906, allocations: 0 / 424 MB, free: 17.24 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