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.001218/0.001218, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008796/0.0008797, allocations: 90.23 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.152e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3431/0.4563, allocations: 94.32 MB / 481.9 MB, free: 436 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.4566, allocations: 79.95 kB / 482 MB, free: 356 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06257/0.5192, allocations: 23.6 MB / 0.4937 GB, free: 8.602 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.151e-06/0.5193, allocations: 4 kB / 0.4937 GB, free: 8.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.267e-05/0.5193, allocations: 19.94 kB / 0.4937 GB, free: 8.578 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.001639/0.521, allocations: 1.014 MB / 0.4947 GB, free: 7.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.521, allocations: 12.02 kB / 0.4947 GB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004743/0.5215, allocations: 154.6 kB / 0.4949 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.5226, allocations: 0.6679 MB / 0.4955 GB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.5227, allocations: 27.95 kB / 0.4956 GB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.659e-05/0.5228, allocations: 56 kB / 0.4956 GB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007966/0.5236, allocations: 452 kB / 0.496 GB, free: 6.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.5247, allocations: 0.6623 MB / 0.4967 GB, free: 5.426 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.5247, allocations: 7.906 kB / 0.4967 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.5248, allocations: 0 / 0.4967 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.5248, allocations: 20 kB / 0.4967 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004068/0.5289, allocations: 3.472 MB / 0.5001 GB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.5293, allocations: 212.5 kB / 0.5003 GB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.5294, allocations: 92.78 kB / 0.5004 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.5295, allocations: 4 kB / 0.5004 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.5295, allocations: 38.5 kB / 0.5004 GB, free: 1.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.873e-06/0.5295, allocations: 4 kB / 0.5004 GB, free: 1.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001327/0.5309, allocations: 0.7739 MB / 0.5012 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.5309, allocations: 89.06 kB / 0.5013 GB, free: 396 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006257/0.5316, allocations: 0.5151 MB / 0.5018 GB, free: 15.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.5316, allocations: 25.7 kB / 0.5018 GB, free: 15.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.532, allocations: 0.5132 MB / 0.5023 GB, free: 15.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.026e-05/0.5321, allocations: 106.5 kB / 0.5024 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.5321, allocations: 0 / 0.5024 GB, free: 15.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.5322, allocations: 370.8 kB / 0.5028 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.5324, allocations: 97.5 kB / 0.5029 GB, free: 14.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.5328, allocations: 386 kB / 0.5032 GB, free: 14.22 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.533, allocations: 168.1 kB / 0.5034 GB, free: 14.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.533, allocations: 4 kB / 0.5034 GB, free: 14.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007531/0.5338, allocations: 0.4942 MB / 0.5039 GB, free: 13.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.5338, allocations: 12 kB / 0.5039 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.5339, allocations: 15.98 kB / 0.5039 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.534, allocations: 32.86 kB / 0.5039 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000464/0.5345, allocations: 151.7 kB / 0.5041 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009464/0.5354, allocations: 1.248 MB / 0.5053 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004383/0.5359, allocations: 35.95 kB / 0.5053 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.5359, allocations: 36 kB / 0.5054 GB, free: 11.91 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.0001101/0.5361, allocations: 124.7 kB / 0.5055 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004061/0.5365, allocations: 257.7 kB / 0.5057 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.5366, allocations: 79.11 kB / 0.5058 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004452/0.537, allocations: 261.9 kB / 0.5061 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.537, allocations: 4 kB / 0.5061 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.537, allocations: 0 / 0.5061 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.537, allocations: 0 / 0.5061 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.5384, allocations: 0.9383 MB / 0.507 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.5384, allocations: 7.938 kB / 0.507 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.5387, allocations: 59.97 kB / 0.507 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.132e-05/0.5388, allocations: 25.06 kB / 0.5071 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.5388, allocations: 11.94 kB / 0.5071 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008064/0.5397, allocations: 1.225 MB / 0.5083 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5397, allocations: 4.031 kB / 0.5083 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006046/0.5403, allocations: 0.576 MB / 0.5088 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.5405, allocations: 164.4 kB / 0.509 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-05/0.5406, allocations: 7.984 kB / 0.509 GB, free: 7.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.5409, allocations: 19.97 kB / 0.509 GB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.541, allocations: 27.91 kB / 0.5091 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.541, allocations: 12 kB / 0.5091 GB, free: 7.801 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004393/0.5414, allocations: 395.2 kB / 0.5094 GB, free: 7.422 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5414, allocations: 0 / 0.5094 GB, free: 7.422 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006589/0.5421, allocations: 159.9 kB / 0.5096 GB, free: 7.266 MB / 394.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.001311/0.5434, allocations: 1.78 MB / 0.5113 GB, free: 5.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006487/0.5441, allocations: 387.9 kB / 0.5117 GB, free: 5.023 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5441, allocations: 64 / 0.5117 GB, free: 5.023 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.5444, allocations: 216.3 kB / 0.5119 GB, free: 4.805 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007901/0.5452, allocations: 164.9 kB / 0.5121 GB, free: 4.645 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.5474, allocations: 1.144 MB / 0.5132 GB, free: 3.438 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.548, allocations: 0.9678 MB / 0.5141 GB, free: 2.441 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003408/0.5483, allocations: 85.38 kB / 0.5142 GB, free: 2.355 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.5487, allocations: 315.3 kB / 0.5145 GB, free: 2.047 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5487, allocations: 3.938 kB / 0.5145 GB, free: 2.043 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.5854, allocations: 13.62 MB / 0.5278 GB, free: 4.523 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/0.5856, allocations: 156.7 kB / 0.528 GB, free: 4.332 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/2.838, allocations: 4 kB / 0.528 GB, free: 4.328 MB / 410.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