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.001599/0.001599, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001143, allocations: 98.59 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.401e-05/2.407e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3505, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.4822, allocations: 80.02 MB / 442.5 MB, free: 6.195 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.4825, allocations: 67.97 kB / 442.5 MB, free: 6.129 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0711/0.5536, allocations: 13.62 MB / 456.1 MB, free: 8.543 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5536, allocations: 0 / 456.1 MB, free: 8.543 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.202e-05/0.5537, allocations: 15.98 kB / 456.2 MB, free: 8.527 MB / 347.1 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.005028/0.5587, allocations: 1.078 MB / 457.2 MB, free: 7.406 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.5588, allocations: 8.031 kB / 457.2 MB, free: 7.398 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000517/0.5594, allocations: 83.05 kB / 457.3 MB, free: 7.316 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.5609, allocations: 0.4911 MB / 457.8 MB, free: 6.781 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.778e-05/0.561, allocations: 14.25 kB / 457.8 MB, free: 6.77 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002513/0.5612, allocations: 24 kB / 457.9 MB, free: 6.746 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003221/0.5645, allocations: 1.024 MB / 458.9 MB, free: 5.719 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.567, allocations: 0.8211 MB / 459.7 MB, free: 4.879 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.5671, allocations: 3.906 kB / 459.7 MB, free: 4.875 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.5672, allocations: 4 kB / 459.7 MB, free: 4.871 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.5673, allocations: 8 kB / 459.7 MB, free: 4.863 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009294/0.5766, allocations: 2.341 MB / 462.1 MB, free: 2.453 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.5783, allocations: 0.6188 MB / 462.7 MB, free: 1.816 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.5798, allocations: 497.6 kB / 463.2 MB, free: 1.324 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.58, allocations: 5.031 kB / 463.2 MB, free: 1.32 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001924/0.5819, allocations: 0.7357 MB / 463.9 MB, free: 0.5664 MB / 347.1 MB Notification: Performance of pre-optimization done (n=49): time 3.387e-06/0.5819, allocations: 0 / 463.9 MB, free: 0.5664 MB / 347.1 MB Notification: Performance of matching and sorting (n=51): time 0.01057/0.5925, allocations: 3.262 MB / 467.2 MB, free: 13.2 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.5926, allocations: 86.11 kB / 467.2 MB, free: 13.1 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009303/0.5936, allocations: 0.4994 MB / 467.7 MB, free: 12.6 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003356/0.5939, allocations: 41.7 kB / 467.8 MB, free: 12.55 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002858/0.5942, allocations: 306.9 kB / 468.1 MB, free: 12.25 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.5946, allocations: 165.8 kB / 468.2 MB, free: 12.08 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.5947, allocations: 0 / 468.2 MB, free: 12.08 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.5949, allocations: 334.8 kB / 468.6 MB, free: 11.75 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.5963, allocations: 0.5022 MB / 469.1 MB, free: 11.25 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.5979, allocations: 0.5846 MB / 469.7 MB, free: 10.63 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.5993, allocations: 435.5 kB / 470.1 MB, free: 10.2 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.5994, allocations: 0 / 470.1 MB, free: 10.2 MB / 363.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005518/0.6049, allocations: 1.595 MB / 471.7 MB, free: 8.594 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.605, allocations: 4 kB / 471.7 MB, free: 8.59 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.689e-05/0.6051, allocations: 12 kB / 471.7 MB, free: 8.578 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008771/0.6138, allocations: 4.122 MB / 475.8 MB, free: 4.441 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.615, allocations: 119.9 kB / 475.9 MB, free: 4.324 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.6269, allocations: 5.473 MB / 481.4 MB, free: 14.59 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/0.6298, allocations: 291.8 kB / 481.7 MB, free: 14.31 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003466/0.6302, allocations: 99.98 kB / 481.8 MB, free: 14.21 MB / 379.1 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.0004965/0.6307, allocations: 146.5 kB / 481.9 MB, free: 14.06 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00521/0.636, allocations: 1.523 MB / 483.5 MB, free: 12.52 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.6364, allocations: 71.14 kB / 483.5 MB, free: 12.45 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/0.6415, allocations: 1.462 MB / 485 MB, free: 10.98 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.6415, allocations: 8 kB / 485 MB, free: 10.97 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6416, allocations: 0 / 485 MB, free: 10.97 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.6416, allocations: 0 / 485 MB, free: 10.97 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008208/0.6498, allocations: 2.445 MB / 487.4 MB, free: 8.465 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.6499, allocations: 0 / 487.4 MB, free: 8.465 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6509, allocations: 104 kB / 487.5 MB, free: 8.363 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00869/0.6596, allocations: 4.145 MB / 491.7 MB, free: 4.203 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002552/0.6599, allocations: 31.97 kB / 491.7 MB, free: 4.172 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.6706, allocations: 5.135 MB / 496.9 MB, free: 14.77 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/0.6707, allocations: 4.031 kB / 496.9 MB, free: 14.77 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006989/0.6777, allocations: 2.227 MB / 499.1 MB, free: 12.49 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.6788, allocations: 308.2 kB / 499.4 MB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002943/0.6791, allocations: 18.06 kB / 499.4 MB, free: 12.15 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002996/0.6822, allocations: 299.7 kB / 499.7 MB, free: 11.86 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002896/0.6851, allocations: 0.6588 MB / 0.4886 GB, free: 11.2 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003615/0.6855, allocations: 91.97 kB / 0.4887 GB, free: 11.11 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009553/0.6865, allocations: 491.1 kB / 0.4892 GB, free: 10.63 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6865, allocations: 0 / 0.4892 GB, free: 10.63 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001557/0.6881, allocations: 223.9 kB / 0.4894 GB, free: 10.41 MB / 395.1 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.0077/0.6958, allocations: 3.076 MB / 0.4924 GB, free: 7.27 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003758/0.6996, allocations: 1.321 MB / 0.4937 GB, free: 5.922 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/0.6997, allocations: 4.062 kB / 0.4937 GB, free: 5.918 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002078/0.7018, allocations: 0.7686 MB / 0.4944 GB, free: 5.129 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008949/0.7027, allocations: 51.27 kB / 0.4945 GB, free: 5.082 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009472/0.7122, allocations: 2.004 MB / 0.4965 GB, free: 3.023 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007734/0.713, allocations: 0.9419 MB / 0.4974 GB, free: 2.055 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/0.7136, allocations: 191.4 kB / 0.4976 GB, free: 1.871 MB / 395.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7136, allocations: 0 / 0.4976 GB, free: 1.871 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.399/4.113, allocations: 18.42 MB / 0.5155 GB, free: 121.5 MB / 395.1 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