Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008947, allocations: 99.27 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.039e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3926/0.5126, allocations: 81.66 MB / 469.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.5129, allocations: 69.84 kB / 469.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0425/0.5555, allocations: 13.79 MB / 483.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5555, allocations: 4 kB / 483.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.907e-05/0.5556, allocations: 8 kB / 483.1 MB, free: 15.13 MB / 362.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.002776/0.5583, allocations: 1.092 MB / 484.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.5584, allocations: 8.031 kB / 484.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.5586, allocations: 79.06 kB / 484.3 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.5594, allocations: 498.8 kB / 484.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.5594, allocations: 12 kB / 484.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.5595, allocations: 20 kB / 484.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001654/0.5612, allocations: 1.02 MB / 485.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.5625, allocations: 0.8249 MB / 486.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.5625, allocations: 7.906 kB / 486.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.731e-05/0.5626, allocations: 0 / 486.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.5627, allocations: 15.98 kB / 486.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/0.5674, allocations: 2.325 MB / 489 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/0.5684, allocations: 0.628 MB / 489.6 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006974/0.5691, allocations: 0.4902 MB / 490.1 MB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.458e-05/0.5692, allocations: 12 kB / 490.1 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.5702, allocations: 0.7278 MB / 490.8 MB, free: 7.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.5702, allocations: 3.938 kB / 490.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.005889/0.5761, allocations: 3.261 MB / 494.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.5762, allocations: 85.11 kB / 494.2 MB, free: 3.695 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005955/0.5768, allocations: 0.4916 MB / 494.7 MB, free: 3.199 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.5769, allocations: 41.69 kB / 494.7 MB, free: 3.152 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.5771, allocations: 284.4 kB / 495 MB, free: 2.871 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.5773, allocations: 165.8 kB / 495.2 MB, free: 2.707 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.182e-05/0.5774, allocations: 4 kB / 495.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.5776, allocations: 378.8 kB / 495.5 MB, free: 2.324 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007351/0.5783, allocations: 0.4974 MB / 496 MB, free: 1.824 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008111/0.5791, allocations: 0.5923 MB / 496.6 MB, free: 1.203 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.5798, allocations: 446.1 kB / 497.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5798, allocations: 0 / 497.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002867/0.5827, allocations: 1.635 MB / 498.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.5827, allocations: 4 kB / 498.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.5828, allocations: 8 kB / 498.7 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005046/0.5878, allocations: 4.133 MB / 0.491 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.5884, allocations: 123.8 kB / 0.4912 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007225/0.5956, allocations: 5.468 MB / 0.4965 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.5972, allocations: 291.6 kB / 0.4968 GB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.5973, allocations: 104 kB / 0.4969 GB, free: 4.715 MB / 378.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.0003647/0.5977, allocations: 138.5 kB / 0.497 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002818/0.6005, allocations: 1.531 MB / 0.4985 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.6007, allocations: 67.23 kB / 0.4986 GB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002831/0.6035, allocations: 1.454 MB / 0.5 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.6036, allocations: 8 kB / 0.5 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6036, allocations: 0 / 0.5 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.6036, allocations: 0 / 0.5 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00418/0.6078, allocations: 2.451 MB / 0.5024 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.6078, allocations: 3.984 kB / 0.5024 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.6083, allocations: 99.95 kB / 0.5025 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005387/0.6137, allocations: 4.145 MB / 0.5065 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.6138, allocations: 27.97 kB / 0.5066 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00682/0.6207, allocations: 5.154 MB / 0.5116 GB, free: 5.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6207, allocations: 0 / 0.5116 GB, free: 5.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003921/0.6246, allocations: 2.221 MB / 0.5138 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005706/0.6252, allocations: 304.2 kB / 0.5141 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.6254, allocations: 19.95 kB / 0.5141 GB, free: 2.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.6269, allocations: 299.7 kB / 0.5144 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001393/0.6283, allocations: 0.6549 MB / 0.515 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.6285, allocations: 91.97 kB / 0.5151 GB, free: 1.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006567/0.6291, allocations: 487.1 kB / 0.5156 GB, free: 1.141 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6291, allocations: 0 / 0.5156 GB, free: 1.141 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009427/0.6301, allocations: 223.9 kB / 0.5158 GB, free: 0.9219 MB / 394.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.004551/0.6347, allocations: 3.081 MB / 0.5188 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.637, allocations: 1.316 MB / 0.5201 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.637, allocations: 0 / 0.5201 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.6383, allocations: 0.8155 MB / 0.5209 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.6389, allocations: 57.31 kB / 0.5209 GB, free: 11.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005128/0.644, allocations: 1.969 MB / 0.5228 GB, free: 9.516 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.6446, allocations: 0.9382 MB / 0.5238 GB, free: 8.555 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.6449, allocations: 39.27 kB / 0.5238 GB, free: 8.516 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.6451, allocations: 195.4 kB / 0.524 GB, free: 8.328 MB / 410.7 MB Notification: Performance of SimCode: time 4e-07/0.6451, allocations: 0 / 0.524 GB, free: 8.328 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05472/0.6999, allocations: 23.34 MB / 0.5468 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.7002, allocations: 149.4 kB / 0.5469 GB, free: 0.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.627/3.327, allocations: 0 / 0.5469 GB, free: 0.75 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat