Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction",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.001565/0.00157, allocations: 188.2 kB / 16.4 MB, free: 5.625 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.106/2.106, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001201/0.001201, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004154/0.0004157, allocations: 8 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00443/0.1169, allocations: 2.416 MB / 377 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003095/0.12, allocations: 1.143 MB / 378.2 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.1204, allocations: 7.938 kB / 378.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003973/0.1209, allocations: 59.61 kB / 378.3 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004131/0.1213, allocations: 143.6 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1227, allocations: 335.2 kB / 378.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.1237, allocations: 464.2 kB / 379.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.124, allocations: 81.42 kB / 379.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006546/0.1247, allocations: 311.1 kB / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.127, allocations: 1.412 MB / 381 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.1273, allocations: 32 kB / 381 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003396/0.1276, allocations: 75.97 kB / 381.1 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003133/0.128, allocations: 199.3 kB / 381.3 MB, free: 8.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.1282, allocations: 129.3 kB / 381.4 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009736/0.1292, allocations: 0.6003 MB / 382 MB, free: 7.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1292, allocations: 0 / 382 MB, free: 7.934 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1292, allocations: 0 / 382 MB, free: 7.934 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1292, allocations: 4 kB / 382 MB, free: 7.93 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.006359/0.1356, allocations: 1.317 MB / 383.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.1357, allocations: 11.97 kB / 383.3 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003203/0.136, allocations: 74.53 kB / 383.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.1363, allocations: 75.06 kB / 383.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009019/0.1372, allocations: 398.8 kB / 383.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.1373, allocations: 29 kB / 383.9 MB, free: 5.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.1375, allocations: 35.91 kB / 383.9 MB, free: 5.895 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003434/0.1409, allocations: 1.165 MB / 385.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.141, allocations: 4 kB / 385.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.1411, allocations: 19.98 kB / 385.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.1412, allocations: 8 kB / 385.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005064/0.1462, allocations: 1.775 MB / 386.9 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008184/0.1545, allocations: 2.564 MB / 389.5 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2753/0.4299, allocations: 0.9205 MB / 390.4 MB, free: 21.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.4301, allocations: 11.7 kB / 390.4 MB, free: 21.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002808/0.4329, allocations: 0.9102 MB / 391.3 MB, free: 21.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 4.258e-06/0.433, allocations: 0 / 391.3 MB, free: 21.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.02241/0.4554, allocations: 6.028 MB / 397.3 MB, free: 19.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.4555, allocations: 83.02 kB / 397.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002893/0.4585, allocations: 0.9181 MB / 398.3 MB, free: 19.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003559/0.4589, allocations: 47.31 kB / 398.4 MB, free: 19.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.4593, allocations: 314.8 kB / 398.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.4597, allocations: 169.4 kB / 398.9 MB, free: 18.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.4599, allocations: 10.11 kB / 398.9 MB, free: 18.78 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.46, allocations: 332.4 kB / 399.2 MB, free: 18.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003679/0.4637, allocations: 0.8625 MB / 400.1 MB, free: 18.28 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003933/0.4677, allocations: 0.9563 MB / 401 MB, free: 18.01 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003219/0.471, allocations: 0.7753 MB / 401.8 MB, free: 17.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.4711, allocations: 0 / 401.8 MB, free: 17.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01015/0.4813, allocations: 2.451 MB / 404.2 MB, free: 17.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.999e-05/0.4814, allocations: 8.484 kB / 404.2 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.4814, allocations: 0 / 404.2 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004333/0.4858, allocations: 1.904 MB / 406.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.4872, allocations: 123.3 kB / 406.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/0.5025, allocations: 6.466 MB / 412.7 MB, free: 9.383 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003764/0.5064, allocations: 296.6 kB / 413 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002843/0.5067, allocations: 27.94 kB / 413.1 MB, free: 9.141 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009773/0.5077, allocations: 256 kB / 413.3 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.5081, allocations: 71.16 kB / 413.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.5085, allocations: 102 kB / 413.5 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.5085, allocations: 8 kB / 413.5 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.5086, allocations: 0 / 413.5 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.5086, allocations: 3.984 kB / 413.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.5187, allocations: 3.14 MB / 416.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.5187, allocations: 0 / 416.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.5199, allocations: 95.92 kB / 416.7 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003571/0.5236, allocations: 1.857 MB / 418.6 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/0.5238, allocations: 27.95 kB / 418.6 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/0.538, allocations: 6.194 MB / 424.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.5381, allocations: 0 / 424.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/0.5502, allocations: 3.307 MB / 428.1 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008137/0.5511, allocations: 212.1 kB / 428.3 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.5514, allocations: 23.61 kB / 428.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00431/0.5557, allocations: 351.6 kB / 428.7 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003876/0.5596, allocations: 0.6393 MB / 429.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000303/0.56, allocations: 31.97 kB / 429.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001669/0.5617, allocations: 0.6709 MB / 430 MB, free: 7.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.5618, allocations: 0 / 430 MB, free: 7.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002038/0.5638, allocations: 187.2 kB / 430.2 MB, free: 7.578 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01323/0.5771, allocations: 4.113 MB / 434.3 MB, free: 3.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007128/0.5843, allocations: 1.943 MB / 436.3 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/0.5843, allocations: 4 kB / 436.3 MB, free: 1.441 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003856/0.5882, allocations: 1.059 MB / 437.3 MB, free: 368 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.5893, allocations: 55.83 kB / 437.4 MB, free: 316 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02962/0.619, allocations: 9.827 MB / 447.2 MB, free: 6.371 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007947/0.6198, allocations: 0.9392 MB / 448.1 MB, free: 5.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008584/0.6207, allocations: 195.4 kB / 448.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of SimCode: time 2.465e-06/0.6208, allocations: 4 kB / 448.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.182/3.803, allocations: 16.54 MB / 464.9 MB, free: 4.66 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat