Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009862/0.0009859, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008744/0.0008745, allocations: 89.05 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.717e-05/1.719e-05, allocations: 0 / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3338/0.4489, allocations: 76.57 MB / 471.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4492, allocations: 72.42 kB / 471.9 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00456/0.4537, allocations: 1.824 MB / 473.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4538, allocations: 4 kB / 473.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.232e-05/0.4538, allocations: 2.062 kB / 473.7 MB, free: 13.28 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003427/0.4542, allocations: 369.7 kB / 474.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.4542, allocations: 8.031 kB / 474.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.4544, allocations: 17.06 kB / 474.1 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.4545, allocations: 164.6 kB / 474.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4545, allocations: 3.859 kB / 474.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.4545, allocations: 8 kB / 474.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001322/0.4547, allocations: 48.59 kB / 474.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.4548, allocations: 73.23 kB / 474.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.4548, allocations: 4 kB / 474.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.4548, allocations: 0 / 474.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4548, allocations: 0 / 474.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.4554, allocations: 373.9 kB / 474.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.906e-05/0.4555, allocations: 66.14 kB / 474.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.391e-05/0.4556, allocations: 30.91 kB / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.4556, allocations: 0 / 474.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.501e-05/0.4556, allocations: 31.36 kB / 474.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.4556, allocations: 0 / 474.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001648/0.4558, allocations: 75.81 kB / 475 MB, free: 12.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.771e-05/0.4558, allocations: 55.41 kB / 475 MB, free: 12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.451e-05/0.4559, allocations: 102.8 kB / 475.1 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.4559, allocations: 25.7 kB / 475.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.899e-05/0.456, allocations: 101.2 kB / 475.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.456, allocations: 29.48 kB / 475.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.456, allocations: 0 / 475.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.808e-05/0.4561, allocations: 317.1 kB / 475.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.117e-05/0.4561, allocations: 19.06 kB / 475.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.166e-05/0.4561, allocations: 39.75 kB / 475.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.605e-05/0.4562, allocations: 25.59 kB / 475.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4562, allocations: 4 kB / 475.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001138/0.4563, allocations: 97.33 kB / 475.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.4563, allocations: 8 kB / 475.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4564, allocations: 0.7969 kB / 475.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.4564, allocations: 4.062 kB / 475.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.4565, allocations: 26.19 kB / 475.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.4565, allocations: 4.656 kB / 475.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.4566, allocations: 8.688 kB / 475.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.4566, allocations: 0 / 475.8 MB, free: 11.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/0.4566, allocations: 105.8 kB / 475.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.919e-05/0.4567, allocations: 72.56 kB / 476 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.4568, allocations: 4.703 kB / 476 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.4568, allocations: 16.44 kB / 476 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4568, allocations: 3.938 kB / 476 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4568, allocations: 0 / 476 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4568, allocations: 3.703 kB / 476 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.457, allocations: 161 kB / 476.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.457, allocations: 0 / 476.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.794e-05/0.4571, allocations: 18.72 kB / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4571, allocations: 3.953 kB / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.4571, allocations: 0 / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4571, allocations: 0.6094 kB / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4571, allocations: 0 / 476.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.4573, allocations: 191.7 kB / 476.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.498e-05/0.4573, allocations: 85.75 kB / 476.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.4573, allocations: 4.703 kB / 476.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.909e-05/0.4574, allocations: 4.828 kB / 476.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.948e-05/0.4574, allocations: 5.203 kB / 476.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.4574, allocations: 4.609 kB / 476.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.364e-05/0.4575, allocations: 83.52 kB / 476.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4575, allocations: 4.062 kB / 476.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.4577, allocations: 20 kB / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003008/0.458, allocations: 0.709 MB / 477.3 MB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001072/0.4581, allocations: 55.78 kB / 477.4 MB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4581, allocations: 4.188 kB / 477.4 MB, free: 9.711 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.506e-05/0.4582, allocations: 21.98 kB / 477.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.4584, allocations: 12.36 kB / 477.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005811/0.4589, allocations: 274.8 kB / 477.7 MB, free: 9.426 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.4591, allocations: 0.6951 MB / 478.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.687e-05/0.4591, allocations: 5.781 kB / 478.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.4592, allocations: 25.81 kB / 478.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4592, allocations: 0 / 478.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.4801, allocations: 1.218 MB / 479.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.4804, allocations: 136.8 kB / 479.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.473/1.954, allocations: 1.5 kB / 479.8 MB, free: 7.816 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat