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.001116/0.001116, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.403/1.403, allocations: 221.3 MB / 235.5 MB, free: 2.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008904/0.0008904, allocations: 97.45 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.079e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3072/0.4126, allocations: 94.98 MB / 489.3 MB, free: 8.453 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4129, allocations: 83.95 kB / 489.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06418/0.4771, allocations: 23.93 MB / 0.5013 GB, free: 292 kB / 378.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.4771, allocations: 0 / 0.5013 GB, free: 292 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.604e-05/0.4772, allocations: 23.94 kB / 0.5013 GB, free: 268 kB / 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.002006/0.4792, allocations: 1.014 MB / 0.5023 GB, free: 15.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4793, allocations: 12.03 kB / 0.5023 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002241/0.4795, allocations: 127.3 kB / 0.5025 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005889/0.4801, allocations: 150.6 kB / 0.5026 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.4814, allocations: 0.6718 MB / 0.5033 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.4815, allocations: 65.95 kB / 0.5033 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.4816, allocations: 84 kB / 0.5034 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.483, allocations: 0.7795 MB / 0.5042 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.483, allocations: 11.88 kB / 0.5042 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.855e-05/0.4831, allocations: 36 kB / 0.5042 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.4831, allocations: 20 kB / 0.5042 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009267/0.4841, allocations: 0.492 MB / 0.5047 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004589/0.4886, allocations: 3.659 MB / 0.5083 GB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/0.4891, allocations: 222.7 kB / 0.5085 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.4893, allocations: 108.8 kB / 0.5086 GB, free: 8.438 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.4893, allocations: 7.938 kB / 0.5086 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.4893, allocations: 34.56 kB / 0.5086 GB, free: 8.387 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.863e-06/0.4894, allocations: 0 / 0.5086 GB, free: 8.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.00143/0.4908, allocations: 0.8414 MB / 0.5095 GB, free: 7.488 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.4908, allocations: 85.11 kB / 0.5095 GB, free: 7.387 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008887/0.4917, allocations: 0.6801 MB / 0.5102 GB, free: 6.703 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.4918, allocations: 33.7 kB / 0.5102 GB, free: 6.664 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.4921, allocations: 0.5022 MB / 0.5107 GB, free: 6.152 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.59e-05/0.4922, allocations: 106.5 kB / 0.5108 GB, free: 6.047 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.99e-05/0.4923, allocations: 8 kB / 0.5108 GB, free: 6.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4924, allocations: 330 kB / 0.5112 GB, free: 5.711 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.4926, allocations: 105.6 kB / 0.5113 GB, free: 5.609 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.493, allocations: 407.5 kB / 0.5116 GB, free: 5.066 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.4933, allocations: 188.1 kB / 0.5118 GB, free: 4.883 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4933, allocations: 0 / 0.5118 GB, free: 4.883 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009365/0.4942, allocations: 0.5831 MB / 0.5124 GB, free: 4.289 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.4943, allocations: 13.52 kB / 0.5124 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.4943, allocations: 8.75 kB / 0.5124 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.4944, allocations: 40.84 kB / 0.5124 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.4949, allocations: 147.7 kB / 0.5126 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009634/0.4959, allocations: 1.292 MB / 0.5139 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005554/0.4965, allocations: 39.89 kB / 0.5139 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.4965, allocations: 32 kB / 0.5139 GB, free: 2.59 MB / 394.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 () * 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.0001199/0.4966, allocations: 152.8 kB / 0.5141 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.4968, allocations: 79.02 kB / 0.5141 GB, free: 2.355 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005519/0.4973, allocations: 302.6 kB / 0.5144 GB, free: 2.051 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4973, allocations: 4 kB / 0.5144 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.4973, allocations: 0 / 0.5144 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.4974, allocations: 8.016 kB / 0.5144 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.4989, allocations: 1.063 MB / 0.5155 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.4989, allocations: 4 kB / 0.5155 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.4992, allocations: 68.11 kB / 0.5155 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-05/0.4993, allocations: 20.86 kB / 0.5156 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.4993, allocations: 8 kB / 0.5156 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008561/0.5002, allocations: 1.276 MB / 0.5168 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.5002, allocations: 4.031 kB / 0.5168 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007002/0.5009, allocations: 0.6115 MB / 0.5174 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.5012, allocations: 184.1 kB / 0.5176 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.596e-05/0.5013, allocations: 8 kB / 0.5176 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/0.5017, allocations: 27.97 kB / 0.5176 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.5018, allocations: 35.84 kB / 0.5177 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.5018, allocations: 12 kB / 0.5177 GB, free: 14.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006744/0.5025, allocations: 0.5148 MB / 0.5182 GB, free: 13.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5025, allocations: 0 / 0.5182 GB, free: 13.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007282/0.5032, allocations: 211.9 kB / 0.5184 GB, free: 13.68 MB / 410.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 () * 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.001425/0.5046, allocations: 1.853 MB / 0.5202 GB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000714/0.5054, allocations: 433 kB / 0.5206 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5054, allocations: 4 kB / 0.5206 GB, free: 11.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.5057, allocations: 219.2 kB / 0.5208 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008999/0.5066, allocations: 222.7 kB / 0.521 GB, free: 10.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.5089, allocations: 1.197 MB / 0.5222 GB, free: 9.613 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.5095, allocations: 0.9764 MB / 0.5232 GB, free: 8.609 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003968/0.5099, allocations: 102.7 kB / 0.5233 GB, free: 8.504 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/0.5102, allocations: 315.3 kB / 0.5236 GB, free: 8.195 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5102, allocations: 0 / 0.5236 GB, free: 8.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.5492, allocations: 19.37 MB / 0.5425 GB, free: 5.059 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.5494, allocations: 189.8 kB / 0.5427 GB, free: 4.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.407/2.957, allocations: 0 / 0.5427 GB, free: 4.84 MB / 426.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