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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 91.86 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002547, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.287, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.4041, allocations: 95.05 MB / 496.6 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.4044, allocations: 91.89 kB / 496.7 MB, free: 1.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2599/0.6644, allocations: 23.91 MB / 0.5084 GB, free: 92.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6644, allocations: 0 / 0.5084 GB, free: 92.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.059e-05/0.6644, allocations: 19.62 kB / 0.5085 GB, free: 92.37 MB / 378.7 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.00157/0.666, allocations: 1.134 MB / 0.5096 GB, free: 91.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.6661, allocations: 12.28 kB / 0.5096 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.6662, allocations: 129.2 kB / 0.5097 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004256/0.6666, allocations: 152.3 kB / 0.5098 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009429/0.6676, allocations: 0.678 MB / 0.5105 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.6676, allocations: 69.81 kB / 0.5106 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.899e-05/0.6677, allocations: 87.84 kB / 0.5107 GB, free: 91.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.6688, allocations: 0.8131 MB / 0.5114 GB, free: 91.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.6688, allocations: 5.562 kB / 0.5114 GB, free: 91.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.6689, allocations: 38.84 kB / 0.5115 GB, free: 91.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.6689, allocations: 19.09 kB / 0.5115 GB, free: 91.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008785/0.6698, allocations: 0.5546 MB / 0.512 GB, free: 91.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003141/0.673, allocations: 3.655 MB / 0.5156 GB, free: 88.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.6734, allocations: 252.2 kB / 0.5159 GB, free: 88.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.6735, allocations: 3.938 kB / 0.5159 GB, free: 88.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.6735, allocations: 33.12 kB / 0.5159 GB, free: 88.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.443e-06/0.6735, allocations: 0 / 0.5159 GB, free: 88.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001699/0.6752, allocations: 1.12 MB / 0.517 GB, free: 88.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.6753, allocations: 81.05 kB / 0.5171 GB, free: 87.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000684/0.6759, allocations: 0.6902 MB / 0.5177 GB, free: 87.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.676, allocations: 29.7 kB / 0.5178 GB, free: 87.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.6762, allocations: 0.5046 MB / 0.5183 GB, free: 87.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.6763, allocations: 111.9 kB / 0.5184 GB, free: 87.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.6763, allocations: 12 kB / 0.5184 GB, free: 87.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.6763, allocations: 328.8 kB / 0.5187 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.6766, allocations: 135.9 kB / 0.5188 GB, free: 86.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.6769, allocations: 428.9 kB / 0.5192 GB, free: 86.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.6773, allocations: 207.5 kB / 0.5194 GB, free: 86.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.6773, allocations: 3.875 kB / 0.5194 GB, free: 86.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008502/0.6781, allocations: 0.6387 MB / 0.5201 GB, free: 85.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.6782, allocations: 9.906 kB / 0.5201 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.6782, allocations: 18.42 kB / 0.5201 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/0.6783, allocations: 40.33 kB / 0.5201 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.6787, allocations: 148.3 kB / 0.5203 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006761/0.6794, allocations: 1.296 MB / 0.5215 GB, free: 84.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004314/0.6799, allocations: 47.27 kB / 0.5216 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.6799, allocations: 30.81 kB / 0.5216 GB, free: 84.61 MB / 378.7 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 () * Number of clocked 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.000273/0.6802, allocations: 241.5 kB / 0.5218 GB, free: 84.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.664e-05/0.6803, allocations: 83.69 kB / 0.5219 GB, free: 84.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005739/0.6809, allocations: 352.4 kB / 0.5222 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.6809, allocations: 3.406 kB / 0.5222 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.6809, allocations: 0 / 0.5222 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.6809, allocations: 3.141 kB / 0.5223 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.6822, allocations: 1.113 MB / 0.5233 GB, free: 83.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.6822, allocations: 2.094 kB / 0.5233 GB, free: 83.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.6825, allocations: 66.91 kB / 0.5234 GB, free: 83.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.811e-05/0.6826, allocations: 20.81 kB / 0.5234 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.6826, allocations: 16.72 kB / 0.5234 GB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005437/0.6831, allocations: 1.29 MB / 0.5247 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6832, allocations: 3.938 kB / 0.5247 GB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000739/0.6839, allocations: 0.6823 MB / 0.5254 GB, free: 81.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.6841, allocations: 185.1 kB / 0.5255 GB, free: 81.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.6842, allocations: 6.219 kB / 0.5256 GB, free: 81.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.6845, allocations: 28.97 kB / 0.5256 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.6846, allocations: 21.61 kB / 0.5256 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.6846, allocations: 10.84 kB / 0.5256 GB, free: 81.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005048/0.6851, allocations: 0.5272 MB / 0.5261 GB, free: 81.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6851, allocations: 0 / 0.5261 GB, free: 81.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006901/0.6858, allocations: 206.1 kB / 0.5263 GB, free: 81.27 MB / 378.7 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 () * 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.001267/0.6871, allocations: 1.922 MB / 0.5282 GB, free: 79.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007305/0.6878, allocations: 488.2 kB / 0.5287 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6878, allocations: 0.75 kB / 0.5287 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.6881, allocations: 247.1 kB / 0.5289 GB, free: 79.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.689, allocations: 220.6 kB / 0.5291 GB, free: 79.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00671/0.6957, allocations: 11.09 MB / 0.5399 GB, free: 68.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.6961, allocations: 0.9706 MB / 0.5409 GB, free: 67.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004205/0.6965, allocations: 97.75 kB / 0.541 GB, free: 67.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.6968, allocations: 321 kB / 0.5413 GB, free: 67.55 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6968, allocations: 4 kB / 0.5413 GB, free: 67.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.729, allocations: 19.2 MB / 0.56 GB, free: 49.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.7292, allocations: 218.4 kB / 0.5603 GB, free: 49.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.512/3.241, allocations: 0 / 0.5603 GB, free: 49.65 MB / 378.7 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