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.001578/0.001578, allocations: 181.6 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.184/2.184, 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.001115/0.001115, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.097e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09796, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4144/0.5125, allocations: 80.69 MB / 449.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.5128, allocations: 64.34 kB / 449.9 MB, free: 12.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07067/0.5835, allocations: 13.71 MB / 463.6 MB, free: 60 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5835, allocations: 0 / 463.6 MB, free: 60 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.153e-05/0.5836, allocations: 12 kB / 463.7 MB, free: 48 kB / 330.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.004879/0.5885, allocations: 1.081 MB / 464.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.5885, allocations: 8.031 kB / 464.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002967/0.5889, allocations: 72.34 kB / 464.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.5892, allocations: 75.06 kB / 464.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.5905, allocations: 0.5004 MB / 465.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.5906, allocations: 23.09 kB / 465.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.5908, allocations: 41.59 kB / 465.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.5934, allocations: 0.8749 MB / 466.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.5934, allocations: 4 kB / 466.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.5936, allocations: 14.94 kB / 466.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.5936, allocations: 8 kB / 466.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003105/0.5967, allocations: 1.046 MB / 467.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.6073, allocations: 2.4 MB / 469.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.6094, allocations: 0.6493 MB / 470.5 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.611, allocations: 0.4981 MB / 470.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.6112, allocations: 4 kB / 471 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00219/0.6134, allocations: 0.7486 MB / 471.7 MB, free: 8.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.459e-06/0.6135, allocations: 0 / 471.7 MB, free: 8.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.01116/0.6246, allocations: 3.329 MB / 475 MB, free: 4.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.6248, allocations: 88.98 kB / 475.1 MB, free: 4.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.6258, allocations: 0.5385 MB / 475.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000372/0.6262, allocations: 41.7 kB / 475.7 MB, free: 4.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.6265, allocations: 314.9 kB / 476 MB, free: 3.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003588/0.6269, allocations: 177.8 kB / 476.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.6271, allocations: 12 kB / 476.2 MB, free: 3.609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.6272, allocations: 334.8 kB / 476.5 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.6287, allocations: 0.5052 MB / 477 MB, free: 2.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.6304, allocations: 0.6017 MB / 477.6 MB, free: 2.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.6318, allocations: 447.5 kB / 478.1 MB, free: 1.699 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.6318, allocations: 0 / 478.1 MB, free: 1.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005582/0.6374, allocations: 1.651 MB / 479.7 MB, free: 32 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/0.6375, allocations: 8 kB / 479.7 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.914e-05/0.6376, allocations: 8 kB / 479.7 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008922/0.6465, allocations: 4.13 MB / 483.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.6476, allocations: 119.9 kB / 484 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.6596, allocations: 5.402 MB / 489.4 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002868/0.6625, allocations: 303.7 kB / 489.7 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/0.6629, allocations: 104 kB / 489.8 MB, free: 5.66 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000406/0.6633, allocations: 139.4 kB / 489.9 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.6636, allocations: 71.16 kB / 490 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005227/0.6688, allocations: 1.486 MB / 491.5 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.6689, allocations: 4 kB / 491.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6689, allocations: 0 / 491.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.6689, allocations: 11.94 kB / 491.5 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008365/0.6773, allocations: 2.513 MB / 494 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.6774, allocations: 8.031 kB / 494 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.6784, allocations: 95.86 kB / 494.1 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008898/0.6873, allocations: 4.153 MB / 498.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000227/0.6876, allocations: 39.97 kB / 498.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/0.6985, allocations: 5.111 MB / 0.4916 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.6985, allocations: 4.031 kB / 0.4916 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007351/0.7059, allocations: 2.248 MB / 0.4938 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.7071, allocations: 328 kB / 0.4941 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.7073, allocations: 20 kB / 0.4941 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002953/0.7103, allocations: 303.7 kB / 0.4944 GB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002941/0.7133, allocations: 0.651 MB / 0.4951 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000348/0.7137, allocations: 91.95 kB / 0.4951 GB, free: 3.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001191/0.7149, allocations: 0.5108 MB / 0.4956 GB, free: 3.406 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7149, allocations: 4 kB / 0.4956 GB, free: 3.402 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001653/0.7166, allocations: 240 kB / 0.4959 GB, free: 3.168 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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.007755/0.7244, allocations: 3.135 MB / 0.4989 GB, free: 15.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003792/0.7282, allocations: 1.353 MB / 0.5003 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.006e-06/0.7283, allocations: 0 / 0.5003 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/0.7304, allocations: 0.7982 MB / 0.501 GB, free: 13.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.7313, allocations: 63.03 kB / 0.5011 GB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009229/0.7406, allocations: 2.048 MB / 0.5031 GB, free: 11.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007117/0.7413, allocations: 0.9338 MB / 0.504 GB, free: 10.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005176/0.7419, allocations: 200.1 kB / 0.5042 GB, free: 10.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.973e-06/0.7419, allocations: 0 / 0.5042 GB, free: 10.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.25/3.992, allocations: 18.46 MB / 0.5222 GB, free: 7.922 MB / 410.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