Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001541/0.001541, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 96.16 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.081e-05/2.092e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3635, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.5178, allocations: 93.11 MB / 455.5 MB, free: 9.09 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003444/0.5182, allocations: 83.94 kB / 455.6 MB, free: 9.008 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1129/0.6311, allocations: 23.64 MB / 479.3 MB, free: 1.332 MB / 363.1 MB Notification: Performance of FrontEnd: time 3.808e-06/0.6312, allocations: 0 / 479.3 MB, free: 1.332 MB / 363.1 MB Notification: Performance of Transformations before backend: time 8.702e-05/0.6313, allocations: 16.66 kB / 479.3 MB, free: 1.316 MB / 363.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.003029/0.6343, allocations: 1.014 MB / 480.3 MB, free: 264 kB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.6344, allocations: 12.03 kB / 480.3 MB, free: 252 kB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009612/0.6354, allocations: 154.6 kB / 480.4 MB, free: 96 kB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.6376, allocations: 0.6718 MB / 481.1 MB, free: 15.38 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.951e-05/0.6377, allocations: 28 kB / 481.1 MB, free: 15.35 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/0.6379, allocations: 52 kB / 481.2 MB, free: 15.3 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001517/0.6394, allocations: 444 kB / 481.6 MB, free: 14.86 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001868/0.6413, allocations: 0.6662 MB / 482.3 MB, free: 14.17 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.062e-05/0.6414, allocations: 11.83 kB / 482.3 MB, free: 14.16 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.714e-05/0.6415, allocations: 0 / 482.3 MB, free: 14.16 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-05/0.6416, allocations: 24 kB / 482.3 MB, free: 14.13 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007669/0.6493, allocations: 3.461 MB / 485.8 MB, free: 10.44 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.65, allocations: 206.7 kB / 486 MB, free: 10.23 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/0.6503, allocations: 88.86 kB / 486.1 MB, free: 10.14 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.6503, allocations: 0 / 486.1 MB, free: 10.14 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.6504, allocations: 38.56 kB / 486.1 MB, free: 10.09 MB / 379.1 MB Notification: Performance of pre-optimization done (n=26): time 2.334e-06/0.6504, allocations: 4 kB / 486.1 MB, free: 10.09 MB / 379.1 MB Notification: Performance of matching and sorting (n=29): time 0.002358/0.6528, allocations: 0.7907 MB / 486.9 MB, free: 9.246 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/0.6529, allocations: 81.11 kB / 487 MB, free: 9.148 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.654, allocations: 0.5113 MB / 487.5 MB, free: 8.629 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 5.339e-05/0.6541, allocations: 25.7 kB / 487.5 MB, free: 8.598 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004927/0.6546, allocations: 0.5468 MB / 488.1 MB, free: 8.047 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.6547, allocations: 110.5 kB / 488.2 MB, free: 7.938 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.6548, allocations: 4 kB / 488.2 MB, free: 7.934 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.655, allocations: 330.8 kB / 488.5 MB, free: 7.602 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.6553, allocations: 97.56 kB / 488.6 MB, free: 7.504 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.6559, allocations: 381.7 kB / 489 MB, free: 6.992 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.6564, allocations: 159.8 kB / 489.1 MB, free: 6.836 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.6564, allocations: 4 kB / 489.1 MB, free: 6.832 MB / 379.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001279/0.6577, allocations: 478 kB / 489.6 MB, free: 6.355 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.6577, allocations: 8 kB / 489.6 MB, free: 6.348 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.6578, allocations: 11.98 kB / 489.6 MB, free: 6.336 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.658, allocations: 37.5 kB / 489.7 MB, free: 6.297 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.659, allocations: 147.8 kB / 489.8 MB, free: 6.152 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.6603, allocations: 1.237 MB / 491 MB, free: 4.801 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008799/0.6613, allocations: 35.77 kB / 491.1 MB, free: 4.766 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.6614, allocations: 32 kB / 491.1 MB, free: 4.734 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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.0001832/0.6616, allocations: 124.9 kB / 491.2 MB, free: 4.605 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007466/0.6623, allocations: 270 kB / 491.5 MB, free: 4.332 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.6625, allocations: 63.25 kB / 491.6 MB, free: 4.27 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008359/0.6633, allocations: 273.4 kB / 491.8 MB, free: 3.984 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.6633, allocations: 4 kB / 491.8 MB, free: 3.98 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6634, allocations: 0 / 491.8 MB, free: 3.98 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.6634, allocations: 0 / 491.8 MB, free: 3.98 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.6656, allocations: 0.9498 MB / 492.8 MB, free: 2.965 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6657, allocations: 4.219 kB / 492.8 MB, free: 2.961 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005691/0.6663, allocations: 63.91 kB / 492.8 MB, free: 2.898 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/0.6664, allocations: 24.84 kB / 492.9 MB, free: 2.871 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.6665, allocations: 4 kB / 492.9 MB, free: 2.867 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.6678, allocations: 1.225 MB / 494.1 MB, free: 1.527 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.6678, allocations: 4.031 kB / 494.1 MB, free: 1.523 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.669, allocations: 0.5761 MB / 494.7 MB, free: 0.8594 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003574/0.6694, allocations: 156.4 kB / 494.8 MB, free: 0.6875 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.6695, allocations: 7.984 kB / 494.8 MB, free: 0.6797 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.6701, allocations: 15.98 kB / 494.9 MB, free: 0.6641 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.6702, allocations: 31.92 kB / 494.9 MB, free: 0.6328 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.6702, allocations: 12 kB / 494.9 MB, free: 0.6211 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0008328/0.6711, allocations: 395.1 kB / 495.3 MB, free: 248 kB / 379.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6711, allocations: 0 / 495.3 MB, free: 248 kB / 379.1 MB Notification: Performance of remove unused functions: time 0.001118/0.6722, allocations: 156 kB / 495.4 MB, free: 92 kB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete 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.002145/0.6744, allocations: 1.783 MB / 497.2 MB, free: 14.24 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.6755, allocations: 398.2 kB / 497.6 MB, free: 13.84 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6756, allocations: 0 / 497.6 MB, free: 13.84 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.676, allocations: 217.9 kB / 497.8 MB, free: 13.62 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.6775, allocations: 152.8 kB / 498 MB, free: 13.47 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.6815, allocations: 1.181 MB / 499.2 MB, free: 12.22 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007994/0.6823, allocations: 0.9678 MB / 0.4884 GB, free: 11.23 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006855/0.683, allocations: 315.3 kB / 0.4887 GB, free: 10.92 MB / 395.1 MB Notification: Performance of SimCode: time 9.92e-07/0.683, allocations: 0 / 0.4887 GB, free: 10.92 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.217/3.901, allocations: 17.33 MB / 0.5056 GB, free: 112.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat