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.0008972/0.0008974, allocations: 91.11 kB / 16.95 MB, free: 6.383 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.0009565/0.0009567, allocations: 182.9 kB / 17.84 MB, free: 5.98 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.723/1.723, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004717/0.0004719, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1058, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009718/0.1156, allocations: 8.452 MB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005703/0.1213, allocations: 2.865 MB / 339.8 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.1228, allocations: 23.94 kB / 339.8 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.1245, allocations: 485.2 kB / 340.3 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001792/0.1263, allocations: 484.4 kB / 340.7 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.1272, allocations: 219.7 kB / 341 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002512/0.1297, allocations: 1.58 MB / 342.5 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.1308, allocations: 499.4 kB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1319, allocations: 0.568 MB / 343.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.1332, allocations: 0.6261 MB / 344.2 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003676/0.1335, allocations: 84 kB / 344.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006508/0.1342, allocations: 120 kB / 344.4 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.1345, allocations: 238.9 kB / 344.6 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004529/0.1349, allocations: 309 kB / 345 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.1364, allocations: 1.511 MB / 346.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1364, allocations: 0 / 346.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1364, allocations: 0 / 346.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.1364, allocations: 4 kB / 346.5 MB, free: 1.863 MB / 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.002764/0.1392, allocations: 1.571 MB / 348 MB, free: 228 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1393, allocations: 8.031 kB / 348 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002028/0.1395, allocations: 164.8 kB / 348.2 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005376/0.14, allocations: 206 kB / 348.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.1412, allocations: 0.7777 MB / 349.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.1414, allocations: 115.8 kB / 349.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.1415, allocations: 111.9 kB / 349.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.1435, allocations: 1.142 MB / 350.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.1435, allocations: 7.984 kB / 350.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.033e-05/0.1436, allocations: 51.95 kB / 350.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.1436, allocations: 28 kB / 350.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.1451, allocations: 0.769 MB / 351.4 MB, free: 12.7 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.005413/0.1505, allocations: 3.965 MB / 355.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.152, allocations: 0.6009 MB / 356 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004958/0.1525, allocations: 278.9 kB / 356.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.1525, allocations: 16.53 kB / 356.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006227/0.1532, allocations: 307.1 kB / 356.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.745e-06/0.1532, allocations: 0 / 356.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004459/0.1576, allocations: 2.116 MB / 358.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002084/0.1579, allocations: 475.2 kB / 359.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.1593, allocations: 1.094 MB / 360.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.1593, allocations: 41.7 kB / 360.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005536/0.1599, allocations: 0.6427 MB / 360.9 MB, free: 2.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.1601, allocations: 232.7 kB / 361.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.1602, allocations: 24 kB / 361.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1603, allocations: 353.9 kB / 361.5 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005511/0.1609, allocations: 246.5 kB / 361.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009492/0.1618, allocations: 0.717 MB / 362.5 MB, free: 0.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007388/0.1626, allocations: 410.3 kB / 362.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1626, allocations: 0 / 362.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001982/0.1646, allocations: 1.142 MB / 364 MB, free: 15.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.1647, allocations: 71.41 kB / 364.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.1647, allocations: 12 kB / 364.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005784/0.1653, allocations: 169.5 kB / 364.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006986/0.166, allocations: 211.7 kB / 364.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004709/0.1707, allocations: 3.531 MB / 368 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.1717, allocations: 84 kB / 368.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.1718, allocations: 44 kB / 368.1 MB, free: 10.98 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005849/0.1724, allocations: 301.5 kB / 368.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.1726, allocations: 126.4 kB / 368.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.1742, allocations: 0.7195 MB / 369.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.1742, allocations: 8.047 kB / 369.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1743, allocations: 4.109 kB / 369.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001433/0.1757, allocations: 0.9763 MB / 370.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.1789, allocations: 1.817 MB / 372.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.179, allocations: 0 / 372.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.1795, allocations: 115.8 kB / 372.2 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004204/0.1799, allocations: 125.8 kB / 372.3 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.201e-05/0.18, allocations: 12 kB / 372.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003404/0.1834, allocations: 3.283 MB / 375.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.1834, allocations: 4.031 kB / 375.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.1853, allocations: 1.077 MB / 376.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004833/0.1858, allocations: 255.6 kB / 376.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.186, allocations: 12 kB / 376.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006514/0.1867, allocations: 60.02 kB / 377 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.1868, allocations: 56.48 kB / 377.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.1869, allocations: 23.98 kB / 377.1 MB, free: 1.469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.1881, allocations: 0.7289 MB / 377.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1881, allocations: 0 / 377.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001164/0.1892, allocations: 308 kB / 378.1 MB, free: 444 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.2213/0.4106, allocations: 1.644 MB / 379.7 MB, free: 50.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.4132, allocations: 1.103 MB / 380.9 MB, free: 50.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/0.4132, allocations: 5.094 kB / 380.9 MB, free: 50.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.4143, allocations: 0.5532 MB / 381.4 MB, free: 50 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.4162, allocations: 308.1 kB / 381.7 MB, free: 50 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.429, allocations: 7.215 MB / 388.9 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007727/0.4298, allocations: 1.086 MB / 390 MB, free: 45.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008525/0.4307, allocations: 148.3 kB / 390.2 MB, free: 45.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005773/0.4312, allocations: 470.4 kB / 390.6 MB, free: 45.36 MB / 318.1 MB Notification: Performance of SimCode: time 1.954e-06/0.4313, allocations: 3.844 kB / 390.6 MB, free: 45.36 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04422/0.4755, allocations: 26.74 MB / 417.4 MB, free: 24.7 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.4757, allocations: 229.3 kB / 417.6 MB, free: 24.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.775/3.25, allocations: 3.938 kB / 417.6 MB, free: 24.46 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat