Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.001071/0.001071, allocations: 177.9 kB / 8.699 MB, free: 384 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.799/1.799, 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.001179/0.001179, allocations: 86.23 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.304e-05/2.291e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 47.58 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3318/0.4493, allocations: 80.28 MB / 443.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4496, allocations: 66.34 kB / 443.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04094/0.4905, allocations: 13.62 MB / 457.1 MB, free: 3.176 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4906, allocations: 0 / 457.1 MB, free: 3.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.267e-05/0.4906, allocations: 12 kB / 457.1 MB, free: 3.164 MB / 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.002787/0.4934, allocations: 1.082 MB / 458.2 MB, free: 2.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4935, allocations: 12.03 kB / 458.2 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.4937, allocations: 75.06 kB / 458.3 MB, free: 1.992 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007335/0.4944, allocations: 0.4927 MB / 458.8 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.624e-05/0.4945, allocations: 16 kB / 458.8 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.4946, allocations: 20 kB / 458.8 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001533/0.4962, allocations: 1.024 MB / 459.9 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.4974, allocations: 0.8246 MB / 460.7 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.4974, allocations: 7.891 kB / 460.7 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.055e-05/0.4975, allocations: 3.984 kB / 460.7 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.4976, allocations: 8 kB / 460.7 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004821/0.5024, allocations: 2.332 MB / 463 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008655/0.5033, allocations: 0.6231 MB / 463.7 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006688/0.504, allocations: 0.4916 MB / 464.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.149e-05/0.5041, allocations: 4 kB / 464.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.5051, allocations: 0.7368 MB / 464.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.986e-06/0.5051, allocations: 0 / 464.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.00608/0.5112, allocations: 3.26 MB / 468.1 MB, free: 9.945 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.5113, allocations: 86.17 kB / 468.2 MB, free: 9.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/0.5119, allocations: 0.498 MB / 468.7 MB, free: 9.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.512, allocations: 36.39 kB / 468.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.5122, allocations: 287.4 kB / 469 MB, free: 9.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.5124, allocations: 166.1 kB / 469.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.016e-05/0.5125, allocations: 0 / 469.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5127, allocations: 382.5 kB / 469.6 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006818/0.5134, allocations: 0.5027 MB / 470.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007371/0.5141, allocations: 0.5823 MB / 470.7 MB, free: 7.934 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006941/0.5148, allocations: 440.2 kB / 471.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.5148, allocations: 0 / 471.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002755/0.5176, allocations: 1.631 MB / 472.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.5176, allocations: 8 kB / 472.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/0.5176, allocations: 8 kB / 472.7 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004934/0.5226, allocations: 4.123 MB / 476.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/0.5232, allocations: 123.5 kB / 477 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007026/0.5302, allocations: 5.479 MB / 482.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.532, allocations: 283.5 kB / 482.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.5321, allocations: 105.7 kB / 482.8 MB, free: 13.11 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.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: stop1.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: supportFriction.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: 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.0003903/0.5325, allocations: 134.4 kB / 483 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002786/0.5353, allocations: 1.536 MB / 484.5 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.5355, allocations: 67.25 kB / 484.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002779/0.5383, allocations: 1.462 MB / 486 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.5383, allocations: 4 kB / 486 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.5383, allocations: 4 kB / 486 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.5383, allocations: 3.984 kB / 486.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004365/0.5427, allocations: 2.436 MB / 488.5 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.5427, allocations: 4 kB / 488.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.5433, allocations: 99.95 kB / 488.6 MB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005148/0.5484, allocations: 4.145 MB / 492.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/0.5486, allocations: 39.95 kB / 492.8 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006323/0.5549, allocations: 5.138 MB / 497.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.555, allocations: 3.938 kB / 497.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/0.5589, allocations: 2.221 MB / 0.4884 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006134/0.5595, allocations: 312.2 kB / 0.4887 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.5597, allocations: 12 kB / 0.4887 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.5613, allocations: 295.7 kB / 0.489 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001395/0.5627, allocations: 0.6666 MB / 0.4897 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.5628, allocations: 87.97 kB / 0.4897 GB, free: 10.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007403/0.5636, allocations: 487.1 kB / 0.4902 GB, free: 9.613 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5636, allocations: 0 / 0.4902 GB, free: 9.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001063/0.5647, allocations: 223.9 kB / 0.4904 GB, free: 9.395 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.004278/0.569, allocations: 3.083 MB / 0.4934 GB, free: 6.238 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002297/0.5713, allocations: 1.304 MB / 0.4947 GB, free: 4.906 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.5713, allocations: 4.438 kB / 0.4947 GB, free: 4.902 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.5726, allocations: 0.831 MB / 0.4955 GB, free: 4.051 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005631/0.5732, allocations: 47.28 kB / 0.4956 GB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/0.5781, allocations: 1.963 MB / 0.4975 GB, free: 1.996 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.5787, allocations: 0.9341 MB / 0.4984 GB, free: 1.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.5789, allocations: 43.28 kB / 0.4984 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.5792, allocations: 191.4 kB / 0.4986 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of SimCode: time 6.12e-07/0.5792, allocations: 0 / 0.4986 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1618/0.741, allocations: 23.34 MB / 0.5214 GB, free: 9.336 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.7413, allocations: 137.9 kB / 0.5215 GB, free: 9.145 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.616/3.357, allocations: 4 kB / 0.5215 GB, free: 9.141 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat