Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008677/0.0008678, allocations: 82.72 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.506e-05/2.509e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1151, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.5205, allocations: 83.01 MB / 446.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.5208, allocations: 70.14 kB / 446.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04508/0.5659, allocations: 14.8 MB / 461 MB, free: 15.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5659, allocations: 0 / 461 MB, free: 15.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.566, allocations: 12 kB / 461.1 MB, free: 15.75 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002637/0.5686, allocations: 1.079 MB / 462.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.5687, allocations: 8.031 kB / 462.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.5689, allocations: 87.02 kB / 462.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005808/0.5695, allocations: 412.5 kB / 462.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.5696, allocations: 31.25 kB / 462.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.5697, allocations: 43.91 kB / 462.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001202/0.5709, allocations: 0.6767 MB / 463.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.572, allocations: 0.6262 MB / 464 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.5721, allocations: 4 kB / 464 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.5721, allocations: 0 / 464 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.5722, allocations: 23.89 kB / 464 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.5764, allocations: 2.334 MB / 466.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008853/0.5773, allocations: 0.579 MB / 466.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004995/0.5778, allocations: 382.9 kB / 467.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.484e-05/0.5779, allocations: 8.781 kB / 467.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000725/0.5786, allocations: 474 kB / 467.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 2.495e-06/0.5786, allocations: 4 kB / 467.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.005191/0.5838, allocations: 2.618 MB / 470.4 MB, free: 8.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.5839, allocations: 68.72 kB / 470.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.5842, allocations: 284.8 kB / 470.8 MB, free: 7.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.84e-05/0.5843, allocations: 41.31 kB / 470.8 MB, free: 7.797 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.5845, allocations: 255.9 kB / 471 MB, free: 7.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002899/0.5848, allocations: 356.1 kB / 471.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.5849, allocations: 0 / 471.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.5851, allocations: 378 kB / 471.8 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.5856, allocations: 339.8 kB / 472.1 MB, free: 6.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/0.5862, allocations: 423.6 kB / 472.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005876/0.5868, allocations: 296.9 kB / 472.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5868, allocations: 0 / 472.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002213/0.589, allocations: 1.102 MB / 473.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.5891, allocations: 11.98 kB / 473.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.5891, allocations: 0 / 473.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009703/0.5901, allocations: 0.5393 MB / 474.5 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.5909, allocations: 194.5 kB / 474.6 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003821/0.5947, allocations: 3.245 MB / 477.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.596, allocations: 219.5 kB / 478.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-05/0.5961, allocations: 38.67 kB / 478.1 MB, free: 1.551 MB / 346.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.0003352/0.5965, allocations: 139.1 kB / 478.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001927/0.5984, allocations: 0.9474 MB / 479.2 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.5985, allocations: 70.62 kB / 479.3 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/0.6008, allocations: 1.127 MB / 480.4 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.6008, allocations: 12 kB / 480.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.6008, allocations: 0 / 480.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.6009, allocations: 3.984 kB / 480.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.6048, allocations: 2.201 MB / 482.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.6048, allocations: 256 / 482.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008107/0.6057, allocations: 191.7 kB / 482.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008815/0.6066, allocations: 0.506 MB / 483.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.178e-05/0.6067, allocations: 27.95 kB / 483.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00349/0.6102, allocations: 3.029 MB / 486.4 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.6102, allocations: 3.938 kB / 486.4 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.6131, allocations: 1.666 MB / 488.1 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.6135, allocations: 228.1 kB / 488.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.6136, allocations: 16 kB / 488.3 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.6149, allocations: 235.8 kB / 488.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008798/0.6158, allocations: 428.4 kB / 488.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.6159, allocations: 51.95 kB / 489 MB, free: 6.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002454/0.6161, allocations: 219 kB / 489.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6162, allocations: 0 / 489.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001218/0.6174, allocations: 208 kB / 489.4 MB, free: 6.273 MB / 362.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.003634/0.621, allocations: 2.798 MB / 492.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.6229, allocations: 1.027 MB / 493.2 MB, free: 2.336 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6229, allocations: 3.938 kB / 493.2 MB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.6241, allocations: 0.6868 MB / 493.9 MB, free: 1.637 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008526/0.625, allocations: 97.73 kB / 494 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.6293, allocations: 1.824 MB / 495.8 MB, free: 15.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005351/0.6299, allocations: 0.9595 MB / 496.8 MB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003597/0.6303, allocations: 73.34 kB / 496.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003537/0.6306, allocations: 243.3 kB / 497.1 MB, free: 14.35 MB / 378.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6306, allocations: 0 / 497.1 MB, free: 14.35 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04957/0.6802, allocations: 19.44 MB / 0.5045 GB, free: 10.88 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000335/0.6806, allocations: 151.9 kB / 0.5046 GB, free: 10.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.706/3.387, allocations: 0 / 0.5046 GB, free: 10.67 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat