Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_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.001589/0.001593, allocations: 182 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 100.1 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004064, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3512, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004904/0.3562, allocations: 3.495 MB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.3596, allocations: 1.308 MB / 379.4 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005426/0.3602, allocations: 12.62 kB / 379.4 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.3605, allocations: 75.34 kB / 379.5 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006989/0.3612, allocations: 250.7 kB / 379.8 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.3625, allocations: 330.3 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.3641, allocations: 0.697 MB / 380.8 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004485/0.3646, allocations: 204.7 kB / 381 MB, free: 40.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009068/0.3655, allocations: 413.7 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008053/0.3663, allocations: 461.9 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.3665, allocations: 46.22 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.367, allocations: 93.42 kB / 382 MB, free: 39.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.3672, allocations: 172.8 kB / 382.1 MB, free: 39.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.3674, allocations: 154.7 kB / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009988/0.3685, allocations: 0.7406 MB / 383 MB, free: 39.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3685, allocations: 0 / 383 MB, free: 39.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3685, allocations: 0 / 383 MB, free: 39.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.3685, allocations: 0 / 383 MB, free: 39.19 MB / 298.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.005117/0.3736, allocations: 1.232 MB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.3737, allocations: 9.812 kB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002757/0.374, allocations: 108.3 kB / 384.4 MB, free: 38.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003478/0.3744, allocations: 90.73 kB / 384.5 MB, free: 38.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000882/0.3753, allocations: 423.5 kB / 384.9 MB, free: 37.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.449e-05/0.3754, allocations: 53.97 kB / 384.9 MB, free: 37.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.3756, allocations: 71.69 kB / 385 MB, free: 37.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.3783, allocations: 0.8132 MB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/0.3784, allocations: 1.344 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.3785, allocations: 34.02 kB / 385.9 MB, free: 37.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.3786, allocations: 16.06 kB / 385.9 MB, free: 37.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/0.382, allocations: 0.8946 MB / 386.8 MB, free: 36.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006744/0.3888, allocations: 2.46 MB / 389.2 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002267/0.3911, allocations: 0.7293 MB / 390 MB, free: 33.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.3913, allocations: 13 kB / 390 MB, free: 33.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001838/0.3931, allocations: 0.5595 MB / 390.5 MB, free: 32.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.308e-06/0.3931, allocations: 0 / 390.5 MB, free: 32.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.01847/0.4116, allocations: 4.469 MB / 395 MB, free: 28.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.4117, allocations: 60.41 kB / 395.1 MB, free: 27.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.4123, allocations: 393.8 kB / 395.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001754/0.4125, allocations: 53.7 kB / 395.5 MB, free: 27.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.4126, allocations: 311.5 kB / 395.8 MB, free: 27.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000326/0.413, allocations: 366.9 kB / 396.2 MB, free: 26.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.3e-05/0.4131, allocations: 20 kB / 396.2 MB, free: 26.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.273e-05/0.4132, allocations: 354.8 kB / 396.5 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.4148, allocations: 450.4 kB / 397 MB, free: 26.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.4165, allocations: 0.5383 MB / 397.5 MB, free: 25.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.4179, allocations: 398.3 kB / 397.9 MB, free: 25.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.418, allocations: 0 / 397.9 MB, free: 25.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004881/0.4229, allocations: 1.342 MB / 399.2 MB, free: 23.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.4229, allocations: 8 kB / 399.2 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.4229, allocations: 4 kB / 399.2 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/0.4247, allocations: 0.6465 MB / 399.9 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/0.4262, allocations: 207.7 kB / 400.1 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005647/0.4319, allocations: 3.311 MB / 403.4 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/0.4343, allocations: 240 kB / 403.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.4345, allocations: 43.98 kB / 403.7 MB, free: 19.09 MB / 298.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005916/0.4351, allocations: 221.8 kB / 403.9 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.4354, allocations: 71.16 kB / 404 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.4356, allocations: 107 kB / 404.1 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.4357, allocations: 8 kB / 404.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.058e-06/0.4357, allocations: 4 kB / 404.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.4357, allocations: 3.984 kB / 404.1 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00718/0.4429, allocations: 2.566 MB / 406.6 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.443, allocations: 4 kB / 406.7 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.4445, allocations: 175.8 kB / 406.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/0.4461, allocations: 0.6272 MB / 407.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/0.4463, allocations: 35.95 kB / 407.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.4513, allocations: 3.143 MB / 410.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4514, allocations: 0 / 410.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006373/0.4578, allocations: 1.966 MB / 412.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006175/0.4584, allocations: 240 kB / 412.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.4587, allocations: 32 kB / 412.9 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002506/0.4612, allocations: 275.7 kB / 413.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001659/0.4629, allocations: 420.1 kB / 413.5 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/0.4631, allocations: 47.95 kB / 413.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003997/0.4635, allocations: 267.1 kB / 413.8 MB, free: 8.496 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4635, allocations: 3.938 kB / 413.9 MB, free: 8.492 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001244/0.4647, allocations: 244 kB / 414.1 MB, free: 8.254 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.006998/0.4718, allocations: 3.061 MB / 417.2 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004105/0.4759, allocations: 1.204 MB / 418.4 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.476, allocations: 4.25 kB / 418.4 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.4784, allocations: 0.7387 MB / 419.1 MB, free: 3.137 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.4796, allocations: 106.2 kB / 419.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/0.4973, allocations: 6.212 MB / 425.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007715/0.4981, allocations: 0.9478 MB / 426.4 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000809/0.499, allocations: 251.3 kB / 426.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.499, allocations: 0 / 426.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.414/3.913, allocations: 19.38 MB / 446 MB, free: 8.07 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat