Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",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.001327/0.001327, 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.543/1.543, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.001153/0.001153, allocations: 88.23 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.704e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3966/0.525, allocations: 84.9 MB / 472.5 MB, free: 9.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.5253, allocations: 71.95 kB / 472.5 MB, free: 9.738 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04572/0.5711, allocations: 15.01 MB / 487.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5711, allocations: 0 / 487.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.852e-05/0.5712, allocations: 12 kB / 487.5 MB, free: 10.66 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002761/0.574, allocations: 1.081 MB / 488.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.574, allocations: 8.031 kB / 488.6 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.5743, allocations: 87.06 kB / 488.7 MB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/0.5749, allocations: 415.4 kB / 489.1 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.584e-05/0.5749, allocations: 24 kB / 489.1 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.575, allocations: 47.91 kB / 489.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001229/0.5763, allocations: 0.6755 MB / 489.9 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.5774, allocations: 0.6203 MB / 490.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.5775, allocations: 15.98 kB / 490.5 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/0.5775, allocations: 0 / 490.5 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.5776, allocations: 16 kB / 490.5 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004393/0.582, allocations: 2.322 MB / 492.8 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008668/0.5829, allocations: 0.5842 MB / 493.4 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.5834, allocations: 379.8 kB / 493.8 MB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.5835, allocations: 20.7 kB / 493.8 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007385/0.5843, allocations: 468.4 kB / 494.3 MB, free: 3.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 3.025e-06/0.5843, allocations: 0 / 494.3 MB, free: 3.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.005619/0.5899, allocations: 2.617 MB / 496.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.59, allocations: 68.72 kB / 497 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/0.5904, allocations: 281.2 kB / 497.2 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.5905, allocations: 45.69 kB / 497.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.5907, allocations: 257 kB / 497.5 MB, free: 332 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.591, allocations: 362.8 kB / 497.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.5911, allocations: 0 / 497.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5913, allocations: 370.8 kB / 498.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005803/0.5919, allocations: 334.6 kB / 498.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006455/0.5925, allocations: 432.8 kB / 499 MB, free: 14.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006321/0.5932, allocations: 298.3 kB / 499.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5932, allocations: 0 / 499.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002358/0.5955, allocations: 1.096 MB / 0.4887 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.5956, allocations: 9.094 kB / 0.4887 GB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/0.5956, allocations: 3.984 kB / 0.4887 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009873/0.5966, allocations: 0.5333 MB / 0.4892 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008192/0.5974, allocations: 207.7 kB / 0.4894 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004235/0.6017, allocations: 3.248 MB / 0.4926 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.603, allocations: 223.9 kB / 0.4928 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.6032, allocations: 39.98 kB / 0.4928 GB, free: 8.992 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003594/0.6035, allocations: 132.6 kB / 0.4929 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002005/0.6055, allocations: 0.948 MB / 0.4939 GB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.6057, allocations: 67.25 kB / 0.4939 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/0.6081, allocations: 1.126 MB / 0.495 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.6081, allocations: 8 kB / 0.495 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.6081, allocations: 3.984 kB / 0.495 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.6081, allocations: 3.984 kB / 0.495 GB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004335/0.6125, allocations: 2.205 MB / 0.4972 GB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.6125, allocations: 4 kB / 0.4972 GB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/0.6134, allocations: 192 kB / 0.4974 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009469/0.6143, allocations: 0.5098 MB / 0.4979 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.142e-05/0.6144, allocations: 27.95 kB / 0.4979 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00365/0.6181, allocations: 3.033 MB / 0.5009 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.6181, allocations: 4 kB / 0.5009 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.6212, allocations: 1.651 MB / 0.5025 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006218/0.6219, allocations: 232.1 kB / 0.5027 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.622, allocations: 12 kB / 0.5027 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.6234, allocations: 247.6 kB / 0.503 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009765/0.6244, allocations: 428.5 kB / 0.5034 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.6246, allocations: 47.95 kB / 0.5034 GB, free: 13.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003282/0.6249, allocations: 219 kB / 0.5036 GB, free: 13.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6249, allocations: 3.938 kB / 0.5036 GB, free: 13.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001091/0.626, allocations: 212 kB / 0.5038 GB, free: 13.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004072/0.6301, allocations: 2.798 MB / 0.5066 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002293/0.6324, allocations: 1.023 MB / 0.5076 GB, free: 9.348 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.6324, allocations: 4 kB / 0.5076 GB, free: 9.344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.6338, allocations: 0.6899 MB / 0.5082 GB, free: 8.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008702/0.6346, allocations: 91.23 kB / 0.5083 GB, free: 8.559 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/0.6394, allocations: 1.84 MB / 0.5101 GB, free: 6.648 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.64, allocations: 0.9478 MB / 0.511 GB, free: 5.672 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.6404, allocations: 73.34 kB / 0.5111 GB, free: 5.598 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003701/0.6407, allocations: 243.3 kB / 0.5113 GB, free: 5.359 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6407, allocations: 7.938 kB / 0.5114 GB, free: 5.352 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05279/0.6935, allocations: 19.42 MB / 0.5303 GB, free: 2.012 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.6938, allocations: 144.9 kB / 0.5305 GB, free: 1.816 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/3.351, allocations: 0 / 0.5305 GB, free: 1.816 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat