Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.001195/0.001195, allocations: 94.44 kB / 16.3 MB, free: 6.457 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.001495/0.001495, allocations: 182.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003667, allocations: 5.375 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1407, allocations: 50.44 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.007737/0.1485, allocations: 6.354 MB / 357.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004871/0.1534, allocations: 2.503 MB / 360.1 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008042/0.1543, allocations: 23.88 kB / 360.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.1555, allocations: 441.9 kB / 360.6 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.1567, allocations: 466.7 kB / 361 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004575/0.1571, allocations: 147.8 kB / 361.2 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.1585, allocations: 0.8818 MB / 362 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005951/0.1592, allocations: 396.1 kB / 362.4 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004798/0.1596, allocations: 358.6 kB / 362.8 MB, free: 24 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004943/0.1601, allocations: 418.2 kB / 363.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.55e-05/0.1602, allocations: 52 kB / 363.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002515/0.1605, allocations: 87.97 kB / 363.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.1606, allocations: 147.4 kB / 363.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002114/0.1609, allocations: 237 kB / 363.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1619, allocations: 1.087 MB / 364.8 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1619, allocations: 3.938 kB / 364.8 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1619, allocations: 0 / 364.8 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.162, allocations: 4 kB / 364.8 MB, free: 14 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001959/0.1639, allocations: 1.149 MB / 365.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.164, allocations: 8.031 kB / 365.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001689/0.1642, allocations: 131.3 kB / 366.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003949/0.1646, allocations: 130.7 kB / 366.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1656, allocations: 0.6095 MB / 366.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.1656, allocations: 62 kB / 366.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.1658, allocations: 87.91 kB / 367 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1672, allocations: 0.8106 MB / 367.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.1673, allocations: 7.938 kB / 367.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.246e-05/0.1674, allocations: 43.95 kB / 367.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.1674, allocations: 20 kB / 367.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.1686, allocations: 0.5504 MB / 368.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.1736, allocations: 3.543 MB / 371.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005439/0.1741, allocations: 246.6 kB / 372.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.51e-05/0.1742, allocations: 4.078 kB / 372.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.1742, allocations: 38.56 kB / 372.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.404e-06/0.1742, allocations: 0 / 372.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002165/0.1764, allocations: 1.101 MB / 373.3 MB, free: 5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.1765, allocations: 85.09 kB / 373.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000847/0.1773, allocations: 0.6999 MB / 374.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.1774, allocations: 33.7 kB / 374.1 MB, free: 4.148 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004122/0.1778, allocations: 0.5136 MB / 374.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.288e-05/0.1779, allocations: 98.56 kB / 374.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.1779, allocations: 16 kB / 374.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.1781, allocations: 386.7 kB / 375.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/0.1784, allocations: 133.2 kB / 375.3 MB, free: 3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.179, allocations: 450.2 kB / 375.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.1793, allocations: 212.1 kB / 375.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1794, allocations: 4 kB / 375.9 MB, free: 2.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001072/0.1804, allocations: 0.6541 MB / 376.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.1805, allocations: 10.81 kB / 376.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.1805, allocations: 12.11 kB / 376.6 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.1807, allocations: 40.83 kB / 376.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.1812, allocations: 155.7 kB / 376.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.1822, allocations: 1.284 MB / 378.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004495/0.1827, allocations: 48.06 kB / 378.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.1828, allocations: 39.98 kB / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003365/0.1831, allocations: 245.5 kB / 378.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.1832, allocations: 79 kB / 378.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007044/0.1839, allocations: 345.9 kB / 378.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.184, allocations: 8 kB / 378.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.184, allocations: 3.953 kB / 378.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.184, allocations: 0 / 378.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.1857, allocations: 1.105 MB / 379.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.1857, allocations: 3.984 kB / 379.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.186, allocations: 67.91 kB / 380 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.589e-05/0.1861, allocations: 20.84 kB / 380 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1861, allocations: 8.219 kB / 380 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008822/0.187, allocations: 1.284 MB / 381.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.187, allocations: 4.25 kB / 381.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000941/0.1879, allocations: 0.6691 MB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.1882, allocations: 168.2 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.428e-05/0.1883, allocations: 12 kB / 382.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.1886, allocations: 35.86 kB / 382.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.523e-05/0.1887, allocations: 23.91 kB / 382.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1887, allocations: 12 kB / 382.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006225/0.1893, allocations: 475 kB / 382.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1894, allocations: 4 kB / 382.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007271/0.1901, allocations: 176 kB / 382.9 MB, free: 10.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001563/0.1917, allocations: 1.718 MB / 384.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009299/0.1926, allocations: 492 kB / 385.1 MB, free: 8.484 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.1926, allocations: 4 kB / 385.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003808/0.193, allocations: 247.8 kB / 385.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008484/0.1939, allocations: 175.3 kB / 385.5 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.2046, allocations: 11.47 MB / 396.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006454/0.2053, allocations: 0.9684 MB / 397.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004436/0.2058, allocations: 94.02 kB / 398 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.2062, allocations: 315.3 kB / 398.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of SimCode: time 1.944e-06/0.2062, allocations: 0 / 398.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.24, allocations: 14.13 MB / 412.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.2403, allocations: 220 kB / 412.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.175/2.415, allocations: 0 / 412.7 MB, free: 12.81 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat