Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001499/0.001499, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009126/0.0009126, allocations: 100.3 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.177e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 51.47 MB / 395.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.447, allocations: 95.14 MB / 490.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.4472, allocations: 82.19 kB / 490.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06007/0.5073, allocations: 23.66 MB / 0.5021 GB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-05/0.5073, allocations: 0 / 0.5021 GB, free: 11.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.759e-05/0.5074, allocations: 31.5 kB / 0.5021 GB, free: 11.03 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.001536/0.5089, allocations: 1.014 MB / 0.5031 GB, free: 10.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.509, allocations: 8.031 kB / 0.5031 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006716/0.5097, allocations: 174.6 kB / 0.5033 GB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.5107, allocations: 0.6746 MB / 0.5039 GB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.5108, allocations: 28 kB / 0.504 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.5109, allocations: 51.62 kB / 0.504 GB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007681/0.5117, allocations: 457.8 kB / 0.5045 GB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.5128, allocations: 0.6582 MB / 0.5051 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.5128, allocations: 3.906 kB / 0.5051 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/0.5129, allocations: 4 kB / 0.5051 GB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.5129, allocations: 20 kB / 0.5051 GB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004067/0.517, allocations: 3.467 MB / 0.5085 GB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.5174, allocations: 212.4 kB / 0.5087 GB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.5175, allocations: 100.8 kB / 0.5088 GB, free: 4.297 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.5176, allocations: 4 kB / 0.5088 GB, free: 4.293 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.5176, allocations: 34.56 kB / 0.5088 GB, free: 4.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.5176, allocations: 0 / 0.5088 GB, free: 4.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001175/0.5188, allocations: 0.7814 MB / 0.5096 GB, free: 3.414 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.5188, allocations: 85.11 kB / 0.5097 GB, free: 3.312 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005825/0.5194, allocations: 0.5151 MB / 0.5102 GB, free: 2.789 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.5194, allocations: 25.7 kB / 0.5102 GB, free: 2.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00035/0.5198, allocations: 0.5171 MB / 0.5107 GB, free: 2.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.138e-05/0.5199, allocations: 102.5 kB / 0.5108 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.689e-05/0.5199, allocations: 0 / 0.5108 GB, free: 2.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.5201, allocations: 370.8 kB / 0.5112 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.5203, allocations: 93.56 kB / 0.5113 GB, free: 1.668 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003457/0.5206, allocations: 388.9 kB / 0.5116 GB, free: 1.152 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.5209, allocations: 168.6 kB / 0.5118 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5209, allocations: 4 kB / 0.5118 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007544/0.5217, allocations: 0.5024 MB / 0.5123 GB, free: 484 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.5217, allocations: 8 kB / 0.5123 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.5217, allocations: 12 kB / 0.5123 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.5219, allocations: 36.84 kB / 0.5123 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.5223, allocations: 143.8 kB / 0.5125 GB, free: 280 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008926/0.5232, allocations: 1.241 MB / 0.5137 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.5236, allocations: 36.05 kB / 0.5137 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.91e-05/0.5237, allocations: 32 kB / 0.5138 GB, free: 14.85 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.0001251/0.5238, allocations: 130.7 kB / 0.5139 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000411/0.5242, allocations: 257.7 kB / 0.5141 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.209e-05/0.5243, allocations: 67.16 kB / 0.5142 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004463/0.5248, allocations: 273.8 kB / 0.5145 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.5248, allocations: 0 / 0.5145 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.5248, allocations: 4 kB / 0.5145 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.5248, allocations: 7.938 kB / 0.5145 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.5261, allocations: 0.9364 MB / 0.5154 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5261, allocations: 0 / 0.5154 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.5264, allocations: 63.91 kB / 0.5154 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.168e-05/0.5265, allocations: 21.06 kB / 0.5155 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.5265, allocations: 11.94 kB / 0.5155 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007963/0.5273, allocations: 1.236 MB / 0.5167 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5273, allocations: 4.062 kB / 0.5167 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006344/0.528, allocations: 0.576 MB / 0.5172 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.5282, allocations: 164.3 kB / 0.5174 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.202e-05/0.5282, allocations: 11.98 kB / 0.5174 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.5286, allocations: 19.98 kB / 0.5174 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.5287, allocations: 27.92 kB / 0.5175 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.5287, allocations: 8 kB / 0.5175 GB, free: 10.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004378/0.5291, allocations: 395.2 kB / 0.5178 GB, free: 10.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.546e-06/0.5291, allocations: 0 / 0.5178 GB, free: 10.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.5298, allocations: 163.9 kB / 0.518 GB, free: 10.2 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.001348/0.5311, allocations: 1.778 MB / 0.5197 GB, free: 8.348 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006678/0.5318, allocations: 399.9 kB / 0.5201 GB, free: 7.949 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5318, allocations: 0 / 0.5201 GB, free: 7.949 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.5321, allocations: 214 kB / 0.5203 GB, free: 7.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.5329, allocations: 158.9 kB / 0.5205 GB, free: 7.582 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.535, allocations: 1.144 MB / 0.5216 GB, free: 6.375 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005275/0.5356, allocations: 0.9717 MB / 0.5225 GB, free: 5.375 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.5359, allocations: 85.38 kB / 0.5226 GB, free: 5.289 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.5363, allocations: 311.3 kB / 0.5229 GB, free: 4.984 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5363, allocations: 0 / 0.5229 GB, free: 4.984 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.5717, allocations: 13.6 MB / 0.5362 GB, free: 7.504 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/0.572, allocations: 167.5 kB / 0.5364 GB, free: 7.305 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.31/2.882, allocations: 0.5625 kB / 0.5364 GB, free: 7.305 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat