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.001161/0.001161, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009046/0.0009046, allocations: 90.52 kB / 292.1 MB, free: 6.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.941e-05/3.944e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1554, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4464/0.6018, allocations: 77.25 MB / 479.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.6021, allocations: 62.22 kB / 479.4 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004417/0.6065, allocations: 1.839 MB / 481.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6065, allocations: 0 / 481.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.6066, allocations: 4 kB / 481.3 MB, free: 10.57 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.0003265/0.6069, allocations: 364.4 kB / 481.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.607, allocations: 12.03 kB / 481.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.607, allocations: 46.59 kB / 481.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.6072, allocations: 11.28 kB / 481.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.6073, allocations: 171.2 kB / 481.9 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.6073, allocations: 7.938 kB / 481.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.6073, allocations: 7.609 kB / 481.9 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.6075, allocations: 80.8 kB / 482 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.6075, allocations: 0 / 482 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.6076, allocations: 7.938 kB / 482 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.6076, allocations: 4 kB / 482 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.6077, allocations: 59.25 kB / 482 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000656/0.6084, allocations: 396 kB / 482.4 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.6085, allocations: 73.88 kB / 482.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.594e-05/0.6086, allocations: 28.61 kB / 482.5 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.6086, allocations: 0 / 482.5 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.6086, allocations: 34.38 kB / 482.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.6086, allocations: 4 kB / 482.5 MB, free: 9.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001783/0.6088, allocations: 73.3 kB / 482.6 MB, free: 9.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.6088, allocations: 51.41 kB / 482.7 MB, free: 9.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.913e-05/0.6089, allocations: 114.3 kB / 482.8 MB, free: 9.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.6089, allocations: 29.64 kB / 482.8 MB, free: 8.992 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.609, allocations: 91.95 kB / 482.9 MB, free: 8.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.609, allocations: 35.3 kB / 482.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.609, allocations: 0 / 482.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.921e-05/0.6091, allocations: 322.5 kB / 483.3 MB, free: 8.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.693e-05/0.6091, allocations: 19.5 kB / 483.3 MB, free: 8.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.005e-05/0.6092, allocations: 46.12 kB / 483.3 MB, free: 8.492 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.832e-05/0.6092, allocations: 24.36 kB / 483.3 MB, free: 8.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6093, allocations: 7.172 kB / 483.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001235/0.6094, allocations: 101.2 kB / 483.4 MB, free: 8.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.6094, allocations: 4 kB / 483.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.6094, allocations: 0 / 483.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.6094, allocations: 0 / 483.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.6096, allocations: 27.92 kB / 483.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.6096, allocations: 9.234 kB / 483.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.271e-05/0.6096, allocations: 13.72 kB / 483.5 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-06/0.6097, allocations: 4 kB / 483.5 MB, free: 8.336 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.799e-05/0.6097, allocations: 108.7 kB / 483.6 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.6098, allocations: 7.906 kB / 483.6 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.037e-05/0.6098, allocations: 14.14 kB / 483.6 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.6098, allocations: 4.859 kB / 483.6 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.6098, allocations: 0 / 483.6 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.6098, allocations: 11.94 kB / 483.6 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.61, allocations: 189.3 kB / 483.8 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.61, allocations: 3.984 kB / 483.8 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.381e-05/0.6101, allocations: 16 kB / 483.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.6101, allocations: 0.75 kB / 483.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.6101, allocations: 0 / 483.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6101, allocations: 0 / 483.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.6101, allocations: 0 / 483.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.6103, allocations: 198.5 kB / 484 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/0.6104, allocations: 81.05 kB / 484.1 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.6104, allocations: 9.469 kB / 484.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.663e-05/0.6105, allocations: 3.938 kB / 484.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.165e-05/0.6105, allocations: 7.984 kB / 484.1 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.6105, allocations: 0 / 484.1 MB, free: 7.652 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.069e-05/0.6105, allocations: 84.81 kB / 484.2 MB, free: 7.574 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6105, allocations: 0 / 484.2 MB, free: 7.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002146/0.6108, allocations: 27.72 kB / 484.3 MB, free: 7.551 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.0004104/0.6112, allocations: 0.7248 MB / 485 MB, free: 6.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.6113, allocations: 59.3 kB / 485 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6113, allocations: 0 / 485 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.884e-05/0.6114, allocations: 23.75 kB / 485.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.6116, allocations: 9.109 kB / 485.1 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006219/0.6122, allocations: 276.8 kB / 485.3 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.6124, allocations: 0.7004 MB / 486 MB, free: 5.746 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.067e-05/0.6125, allocations: 7.938 kB / 486 MB, free: 5.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.6125, allocations: 26.11 kB / 486.1 MB, free: 5.723 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.6125, allocations: 0 / 486.1 MB, free: 5.723 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01428/0.6268, allocations: 1.523 MB / 487.6 MB, free: 4.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.6271, allocations: 155.2 kB / 487.7 MB, free: 4.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.329, allocations: 4 kB / 487.8 MB, free: 4.184 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