Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008421/0.0008469, allocations: 100.6 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008613/0.0008613, allocations: 192 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000227/0.0002271, allocations: 4 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1129, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003388/0.1163, allocations: 2.653 MB / 361 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1182, allocations: 1.243 MB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.1184, allocations: 4 kB / 362.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.1188, allocations: 75.47 kB / 362.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.119, allocations: 111.2 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000701/0.1197, allocations: 342.4 kB / 362.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006178/0.1204, allocations: 0.6826 MB / 363.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.1205, allocations: 85.41 kB / 363.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004262/0.121, allocations: 331 kB / 363.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.1225, allocations: 1.556 MB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.055e-05/0.1226, allocations: 35.94 kB / 365.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000213/0.1228, allocations: 91.97 kB / 365.5 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.123, allocations: 207.3 kB / 365.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.1231, allocations: 125.3 kB / 365.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.1237, allocations: 0.6316 MB / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1237, allocations: 0 / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1237, allocations: 4 kB / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1237, allocations: 0 / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003048/0.1268, allocations: 1.325 MB / 367.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1268, allocations: 12.03 kB / 367.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.127, allocations: 74.52 kB / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000432/0.1274, allocations: 103 kB / 368 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005019/0.1279, allocations: 398.8 kB / 368.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.579e-05/0.128, allocations: 29 kB / 368.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.1281, allocations: 47.84 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1294, allocations: 0.6419 MB / 369.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.1295, allocations: 0 / 369.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.507e-05/0.1295, allocations: 16 kB / 369.1 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1295, allocations: 11.98 kB / 369.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.1313, allocations: 0.7211 MB / 369.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.1346, allocations: 1.74 MB / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1908/0.3254, allocations: 0.5062 MB / 372.1 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009163/0.3264, allocations: 310.1 kB / 372.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.705e-05/0.3265, allocations: 8.844 kB / 372.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3277, allocations: 0.4924 MB / 372.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.625e-06/0.3277, allocations: 0 / 372.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.008572/0.3363, allocations: 3.036 MB / 375.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.3364, allocations: 86.48 kB / 376 MB, free: 18.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.3375, allocations: 0.9108 MB / 376.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.295e-05/0.3376, allocations: 46.48 kB / 376.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.3378, allocations: 301.1 kB / 377.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.3379, allocations: 168.8 kB / 377.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.338, allocations: 15.69 kB / 377.4 MB, free: 17.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3381, allocations: 391.1 kB / 377.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008169/0.3389, allocations: 329.3 kB / 378.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008614/0.3398, allocations: 432.8 kB / 378.5 MB, free: 17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006755/0.3405, allocations: 255.4 kB / 378.8 MB, free: 16.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3405, allocations: 0 / 378.8 MB, free: 16.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002662/0.3431, allocations: 1.024 MB / 379.8 MB, free: 16.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3432, allocations: 5.781 kB / 379.8 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3432, allocations: 3.312 kB / 379.8 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.3442, allocations: 0.5294 MB / 380.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.3448, allocations: 118.8 kB / 380.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/0.35, allocations: 4.479 MB / 384.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.3514, allocations: 294.5 kB / 385.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.3515, allocations: 22.2 kB / 385.3 MB, free: 12.49 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004287/0.3519, allocations: 267.2 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.352, allocations: 70.69 kB / 385.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.3523, allocations: 104 kB / 385.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.3523, allocations: 6.547 kB / 385.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3523, allocations: 0 / 385.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3523, allocations: 3.359 kB / 385.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.3553, allocations: 1.432 MB / 387.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.3553, allocations: 1.672 kB / 387.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.3557, allocations: 96.67 kB / 387.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009501/0.3567, allocations: 0.4942 MB / 387.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-05/0.3568, allocations: 30.81 kB / 387.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/0.3613, allocations: 4.17 MB / 391.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3613, allocations: 1.938 kB / 391.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003098/0.3644, allocations: 1.309 MB / 393.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.3647, allocations: 217.8 kB / 393.4 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.3649, allocations: 24.72 kB / 393.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.3663, allocations: 347.7 kB / 393.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001428/0.3677, allocations: 0.6366 MB / 394.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.727e-05/0.3678, allocations: 33.58 kB / 394.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007097/0.3685, allocations: 0.6633 MB / 395.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3685, allocations: 5.094 kB / 395.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000852/0.3694, allocations: 180.7 kB / 395.3 MB, free: 6.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003922/0.3733, allocations: 2.132 MB / 397.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.3756, allocations: 0.9881 MB / 398.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3756, allocations: 0.875 kB / 398.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.3768, allocations: 0.6687 MB / 399.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.3774, allocations: 75.14 kB / 399.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008442/0.3859, allocations: 5.333 MB / 404.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.3865, allocations: 0.9222 MB / 405.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.3868, allocations: 47.27 kB / 405.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.3871, allocations: 195.4 kB / 405.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of SimCode: time 1.653e-06/0.3871, allocations: 0 / 405.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.4252, allocations: 19.04 MB / 424.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000343/0.4256, allocations: 255.1 kB / 425 MB, free: 10.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/2.732, allocations: 0 / 425 MB, free: 10.95 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat