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.001083/0.001083, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001255/0.001255, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.408/1.408, allocations: 223.3 MB / 241.2 MB, free: 5.301 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0003, allocations: 7.297 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 50.42 MB / 351.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008135/0.1339, allocations: 7.019 MB / 358.4 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004406/0.1384, allocations: 2.451 MB / 360.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.1394, allocations: 23.94 kB / 360.8 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.1409, allocations: 413.7 kB / 361.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.1422, allocations: 333.5 kB / 361.6 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005812/0.1428, allocations: 147.8 kB / 361.7 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001737/0.1446, allocations: 1.109 MB / 362.8 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000821/0.1454, allocations: 392.1 kB / 363.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007231/0.1462, allocations: 394.2 kB / 363.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009379/0.1471, allocations: 430 kB / 364 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003363/0.1475, allocations: 60 kB / 364.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005966/0.1481, allocations: 95.97 kB / 364.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002969/0.1484, allocations: 163.2 kB / 364.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005497/0.1489, allocations: 229.1 kB / 364.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.1504, allocations: 1.126 MB / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1504, allocations: 4 kB / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1504, allocations: 0 / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.46e-05/0.1505, allocations: 0 / 365.7 MB, free: 13.12 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.002343/0.1528, allocations: 1.169 MB / 366.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1529, allocations: 8.031 kB / 366.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.1531, allocations: 135.2 kB / 367 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004701/0.1536, allocations: 150.6 kB / 367.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009371/0.1545, allocations: 0.6173 MB / 367.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.1546, allocations: 62 kB / 367.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1547, allocations: 80 kB / 367.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.1561, allocations: 0.8223 MB / 368.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.1561, allocations: 11.91 kB / 368.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.1562, allocations: 39.94 kB / 368.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.1562, allocations: 24 kB / 368.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1572, allocations: 0.5465 MB / 369.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.1615, allocations: 3.59 MB / 372.9 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005224/0.162, allocations: 246.6 kB / 373.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.1623, allocations: 128.8 kB / 373.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.1623, allocations: 0 / 373.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.1624, allocations: 38.56 kB / 373.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.603e-06/0.1624, allocations: 0 / 373.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002165/0.1645, allocations: 1.104 MB / 374.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1646, allocations: 77.11 kB / 374.5 MB, free: 3.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.1657, allocations: 0.7584 MB / 375.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.1657, allocations: 33.7 kB / 375.3 MB, free: 2.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003965/0.1661, allocations: 0.5136 MB / 375.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.14e-05/0.1662, allocations: 106.5 kB / 375.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.17e-05/0.1663, allocations: 12 kB / 375.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1665, allocations: 382.7 kB / 376.3 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.1668, allocations: 141.2 kB / 376.4 MB, free: 1.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.1673, allocations: 450.2 kB / 376.9 MB, free: 1.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.1677, allocations: 220 kB / 377.1 MB, free: 1.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.1678, allocations: 0 / 377.1 MB, free: 1.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001181/0.1689, allocations: 0.6578 MB / 377.7 MB, free: 368 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.169, allocations: 8 kB / 377.8 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.169, allocations: 12 kB / 377.8 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/0.1692, allocations: 36.84 kB / 377.8 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.1697, allocations: 155.7 kB / 378 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.1707, allocations: 1.288 MB / 379.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.1712, allocations: 44.05 kB / 379.3 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.1713, allocations: 35.98 kB / 379.3 MB, free: 14.65 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.0003562/0.1717, allocations: 241.5 kB / 379.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.1718, allocations: 75.06 kB / 379.6 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006942/0.1725, allocations: 353.9 kB / 380 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.1725, allocations: 7.953 kB / 380 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1725, allocations: 0 / 380 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1725, allocations: 7.938 kB / 380 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.1744, allocations: 1.138 MB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1744, allocations: 0 / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.1747, allocations: 76.11 kB / 381.2 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.902e-05/0.1748, allocations: 20.84 kB / 381.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.1748, allocations: 8 kB / 381.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009339/0.1758, allocations: 1.276 MB / 382.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1758, allocations: 0 / 382.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009755/0.1768, allocations: 0.5964 MB / 383.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.177, allocations: 168.3 kB / 383.3 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.276e-05/0.1771, allocations: 11.98 kB / 383.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.1774, allocations: 27.98 kB / 383.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.1775, allocations: 31.86 kB / 383.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.1775, allocations: 8 kB / 383.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006541/0.1782, allocations: 0.5107 MB / 383.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1782, allocations: 0 / 383.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006688/0.1789, allocations: 168 kB / 384 MB, free: 9.656 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.001244/0.1801, allocations: 1.175 MB / 385.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008845/0.181, allocations: 492 kB / 385.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1811, allocations: 7.938 kB / 385.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003799/0.1814, allocations: 253.9 kB / 385.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009316/0.1824, allocations: 177.4 kB / 386.1 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007845/0.1902, allocations: 4.555 MB / 390.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/0.1909, allocations: 0.9567 MB / 391.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000411/0.1914, allocations: 90.17 kB / 391.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.1918, allocations: 315.3 kB / 392 MB, free: 1.332 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1918, allocations: 4 kB / 392 MB, free: 1.328 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04586/0.2377, allocations: 14.71 MB / 406.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002525/0.238, allocations: 223.3 kB / 406.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/2.432, allocations: 4 kB / 406.9 MB, free: 2.676 MB / 334.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