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.001311/0.001311, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008839/0.0008839, allocations: 78.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.039e-05, allocations: 3.938 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08645/0.0865, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3317/0.4183, allocations: 80.67 MB / 450.8 MB, free: 12.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.4185, allocations: 74.08 kB / 450.9 MB, free: 12.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04032/0.4588, allocations: 13.71 MB / 464.6 MB, free: 340 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4589, allocations: 0 / 464.6 MB, free: 340 kB / 330.7 MB Notification: Performance of Transformations before backend: time 6.834e-05/0.459, allocations: 12 kB / 464.6 MB, free: 328 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.003221/0.4622, allocations: 1.084 MB / 465.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.4623, allocations: 16.02 kB / 465.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002262/0.4625, allocations: 74.66 kB / 465.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.4628, allocations: 87 kB / 465.8 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.4638, allocations: 498.7 kB / 466.3 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-05/0.4639, allocations: 28.78 kB / 466.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.4641, allocations: 39.91 kB / 466.4 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.4657, allocations: 0.8734 MB / 467.3 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.4657, allocations: 0 / 467.3 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.4659, allocations: 16 kB / 467.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.4659, allocations: 12 kB / 467.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.4677, allocations: 1.041 MB / 468.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005288/0.473, allocations: 2.408 MB / 470.7 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.474, allocations: 0.6387 MB / 471.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008325/0.4749, allocations: 0.502 MB / 471.9 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.994e-05/0.475, allocations: 7.938 kB / 471.9 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.4762, allocations: 0.7447 MB / 472.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 5.22e-06/0.4763, allocations: 4 kB / 472.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.00621/0.4825, allocations: 3.325 MB / 476 MB, free: 4.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.4825, allocations: 89.09 kB / 476.1 MB, free: 4.477 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006734/0.4832, allocations: 0.5307 MB / 476.6 MB, free: 3.938 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.4833, allocations: 49.69 kB / 476.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.4836, allocations: 288.4 kB / 476.9 MB, free: 3.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.4838, allocations: 173.8 kB / 477.1 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.4838, allocations: 11.98 kB / 477.1 MB, free: 3.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.484, allocations: 386.8 kB / 477.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008311/0.4849, allocations: 0.5052 MB / 478 MB, free: 2.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/0.4858, allocations: 0.5978 MB / 478.6 MB, free: 1.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007476/0.4865, allocations: 451.5 kB / 479 MB, free: 1.453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4865, allocations: 0 / 479 MB, free: 1.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003061/0.4896, allocations: 1.686 MB / 480.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.4896, allocations: 4 kB / 480.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/0.4897, allocations: 12.03 kB / 480.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004967/0.4947, allocations: 4.133 MB / 484.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.4952, allocations: 123.8 kB / 485 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006865/0.502, allocations: 5.405 MB / 490.4 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.5035, allocations: 299.7 kB / 490.7 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001715/0.5037, allocations: 104 kB / 490.8 MB, free: 5.371 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.0003275/0.504, allocations: 143.4 kB / 490.9 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.5042, allocations: 71.16 kB / 491 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.5072, allocations: 1.482 MB / 492.5 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.5073, allocations: 8 kB / 492.5 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5073, allocations: 3.938 kB / 492.5 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.5073, allocations: 7.938 kB / 492.5 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004501/0.5118, allocations: 2.516 MB / 495 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.5118, allocations: 4.125 kB / 495 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.5123, allocations: 104 kB / 495.1 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00504/0.5174, allocations: 4.153 MB / 499.3 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5175, allocations: 43.91 kB / 499.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006378/0.5239, allocations: 5.099 MB / 0.4926 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5239, allocations: 0 / 0.4926 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004021/0.528, allocations: 2.256 MB / 0.4948 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007354/0.5287, allocations: 316.1 kB / 0.4951 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.5289, allocations: 20 kB / 0.4951 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.5306, allocations: 311.7 kB / 0.4954 GB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001472/0.5321, allocations: 0.6549 MB / 0.496 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/0.5323, allocations: 91.95 kB / 0.4961 GB, free: 3.613 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007453/0.533, allocations: 0.5108 MB / 0.4966 GB, free: 3.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.533, allocations: 0 / 0.4966 GB, free: 3.109 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001033/0.5341, allocations: 236 kB / 0.4968 GB, free: 2.879 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.004426/0.5385, allocations: 3.126 MB / 0.4999 GB, free: 15.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.5408, allocations: 1.36 MB / 0.5012 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5408, allocations: 0 / 0.5012 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.5421, allocations: 0.8451 MB / 0.5021 GB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.5426, allocations: 58.97 kB / 0.5021 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.5479, allocations: 2.001 MB / 0.5041 GB, free: 11.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005498/0.5485, allocations: 0.9416 MB / 0.505 GB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002419/0.5487, allocations: 39.22 kB / 0.505 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002852/0.549, allocations: 195.3 kB / 0.5052 GB, free: 10.12 MB / 394.7 MB Notification: Performance of SimCode: time 7.41e-07/0.549, allocations: 0 / 0.5052 GB, free: 10.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2382/0.7872, allocations: 26.26 MB / 0.5309 GB, free: 135.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002411/0.7875, allocations: 188.2 kB / 0.531 GB, free: 135.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.475/3.262, allocations: 0 / 0.531 GB, free: 135.4 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