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.002319/0.002318, allocations: 181.9 kB / 13.66 MB, free: 1.664 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.122/2.122, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001116/0.001116, allocations: 78.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.132e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09432, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4177/0.5121, allocations: 83.42 MB / 452.6 MB, free: 9.832 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.5125, allocations: 75.58 kB / 452.7 MB, free: 9.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07773/0.5902, allocations: 14.9 MB / 467.6 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5903, allocations: 0 / 467.6 MB, free: 12.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.412e-05/0.5903, allocations: 16 kB / 467.6 MB, free: 12.68 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.004667/0.595, allocations: 1.077 MB / 468.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.5951, allocations: 12.03 kB / 468.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003408/0.5955, allocations: 110.5 kB / 468.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003858/0.5959, allocations: 91 kB / 468.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009972/0.5969, allocations: 411.1 kB / 469.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.273e-05/0.597, allocations: 53.94 kB / 469.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002252/0.5972, allocations: 75.89 kB / 469.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.5995, allocations: 0.7141 MB / 470.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.445e-05/0.5996, allocations: 7.906 kB / 470.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.5997, allocations: 31.98 kB / 470.2 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.5998, allocations: 23.95 kB / 470.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002364/0.6022, allocations: 0.7146 MB / 470.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008412/0.6106, allocations: 2.439 MB / 473.3 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.6125, allocations: 0.6208 MB / 474 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.6137, allocations: 407.8 kB / 474.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.6139, allocations: 12.77 kB / 474.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/0.6154, allocations: 0.4902 MB / 474.9 MB, free: 5.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 4.509e-06/0.6154, allocations: 0 / 474.9 MB, free: 5.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.01125/0.6267, allocations: 2.948 MB / 477.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.6268, allocations: 64.41 kB / 477.9 MB, free: 2.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006609/0.6275, allocations: 311.1 kB / 478.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002653/0.6277, allocations: 57.69 kB / 478.2 MB, free: 1.676 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.628, allocations: 307.5 kB / 478.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005439/0.6286, allocations: 366.8 kB / 478.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.6287, allocations: 23.94 kB / 478.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.6289, allocations: 350.8 kB / 479.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.6301, allocations: 358.6 kB / 479.6 MB, free: 288 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.6314, allocations: 455.5 kB / 480 MB, free: 15.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009782/0.6324, allocations: 304.9 kB / 480.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.6324, allocations: 3.938 kB / 480.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004246/0.6367, allocations: 1.151 MB / 481.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.6368, allocations: 4 kB / 481.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.6368, allocations: 4 kB / 481.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001806/0.6386, allocations: 0.5412 MB / 482 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.6403, allocations: 215.6 kB / 482.3 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006637/0.647, allocations: 3.222 MB / 485.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002499/0.6496, allocations: 243.9 kB / 485.7 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/0.6498, allocations: 39.98 kB / 485.8 MB, free: 9.895 MB / 362.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 () * 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.0004115/0.6502, allocations: 171.9 kB / 485.9 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.6505, allocations: 71.16 kB / 486 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.6547, allocations: 1.201 MB / 487.2 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.6548, allocations: 12 kB / 487.2 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6548, allocations: 0 / 487.2 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/0.6548, allocations: 3.984 kB / 487.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009331/0.6642, allocations: 2.349 MB / 489.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.6642, allocations: 0 / 489.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001771/0.666, allocations: 195.9 kB / 489.8 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/0.6678, allocations: 0.5099 MB / 490.3 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/0.6681, allocations: 39.95 kB / 490.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005553/0.6737, allocations: 3.046 MB / 493.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.258e-06/0.6737, allocations: 8.016 kB / 493.4 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005303/0.679, allocations: 1.724 MB / 495.1 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007199/0.6798, allocations: 236.3 kB / 495.3 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.6801, allocations: 32 kB / 495.3 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/0.6825, allocations: 247.8 kB / 495.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001784/0.6843, allocations: 432.1 kB / 496 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/0.6845, allocations: 47.95 kB / 496 MB, free: 15.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004714/0.685, allocations: 249.2 kB / 496.3 MB, free: 14.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.685, allocations: 0 / 496.3 MB, free: 14.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001298/0.6863, allocations: 251.9 kB / 496.5 MB, free: 14.66 MB / 378.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.006062/0.6924, allocations: 2.873 MB / 499.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.6957, allocations: 1.094 MB / 0.4888 GB, free: 10.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.6957, allocations: 0 / 0.4888 GB, free: 10.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.6977, allocations: 0.6641 MB / 0.4894 GB, free: 9.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.6989, allocations: 118.1 kB / 0.4895 GB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007965/0.7069, allocations: 1.953 MB / 0.4914 GB, free: 7.766 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007371/0.7077, allocations: 0.9554 MB / 0.4924 GB, free: 6.777 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006942/0.7084, allocations: 243.3 kB / 0.4926 GB, free: 6.539 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.7085, allocations: 0 / 0.4926 GB, free: 6.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.241/3.95, allocations: 19.56 MB / 0.5117 GB, free: 2.922 MB / 394.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