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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 89.39 kB / 16.32 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 176.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.000287, allocations: 8 kB / 300.9 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 50.41 MB / 351.3 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002928/0.1065, allocations: 2.543 MB / 353.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1084, allocations: 1.119 MB / 355 MB, free: 16 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.1086, allocations: 7.938 kB / 355 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003415/0.1089, allocations: 55.61 kB / 355.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1091, allocations: 107.2 kB / 355.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007378/0.1099, allocations: 326.6 kB / 355.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000636/0.1105, allocations: 0.6864 MB / 356.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1107, allocations: 77.47 kB / 356.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.1111, allocations: 315 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001528/0.1126, allocations: 1.427 MB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.112e-05/0.1128, allocations: 36 kB / 358 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1129, allocations: 79.91 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.1132, allocations: 191.4 kB / 358.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.1133, allocations: 133.3 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005766/0.1139, allocations: 0.6003 MB / 359 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.1139, allocations: 0 / 359 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1139, allocations: 4 kB / 359 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.1139, allocations: 0 / 359 MB, free: 11.98 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003124/0.1171, allocations: 1.309 MB / 360.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1171, allocations: 12.03 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.1172, allocations: 78.53 kB / 360.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.1174, allocations: 75.06 kB / 360.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.1178, allocations: 398.8 kB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.1179, allocations: 25 kB / 360.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.024e-05/0.118, allocations: 36 kB / 360.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.1196, allocations: 1.173 MB / 362.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.1197, allocations: 0 / 362.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.188e-05/0.1198, allocations: 23.94 kB / 362.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1198, allocations: 11.94 kB / 362.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002508/0.1223, allocations: 1.775 MB / 363.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003803/0.1261, allocations: 2.549 MB / 366.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.1276, allocations: 0.9382 MB / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.1286, allocations: 0.728 MB / 368.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.629e-05/0.1287, allocations: 15.92 kB / 368.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001337/0.1301, allocations: 0.9162 MB / 369.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.255e-06/0.1301, allocations: 0 / 369.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2045/0.3346, allocations: 6.021 MB / 375.1 MB, free: 24.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3347, allocations: 82.8 kB / 375.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.3362, allocations: 0.9191 MB / 376.1 MB, free: 24.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3363, allocations: 50.27 kB / 376.1 MB, free: 24.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.3365, allocations: 298.8 kB / 376.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.3367, allocations: 161.9 kB / 376.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.3367, allocations: 10.84 kB / 376.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3369, allocations: 386.8 kB / 377 MB, free: 23.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.3382, allocations: 0.8618 MB / 377.8 MB, free: 23.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3395, allocations: 0.9497 MB / 378.8 MB, free: 23.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3407, allocations: 0.7842 MB / 379.6 MB, free: 23.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.3408, allocations: 3.281 kB / 379.6 MB, free: 23.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003868/0.3446, allocations: 2.487 MB / 382.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3447, allocations: 5.156 kB / 382.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3447, allocations: 3.469 kB / 382.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/0.3468, allocations: 1.908 MB / 384 MB, free: 22.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.3474, allocations: 119.1 kB / 384.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006507/0.3539, allocations: 6.441 MB / 390.5 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.3552, allocations: 300.5 kB / 390.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-05/0.3553, allocations: 25.97 kB / 390.9 MB, free: 16.93 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 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003924/0.3557, allocations: 256.5 kB / 391.1 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.3559, allocations: 76.05 kB / 391.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.3561, allocations: 103.1 kB / 391.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3561, allocations: 7.828 kB / 391.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3561, allocations: 1.938 kB / 391.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3561, allocations: 3.094 kB / 391.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.3595, allocations: 3.143 MB / 394.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.3595, allocations: 0 / 394.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.3599, allocations: 90.39 kB / 394.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.3613, allocations: 1.868 MB / 396.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/0.3614, allocations: 27.95 kB / 396.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004834/0.3662, allocations: 6.152 MB / 402.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3662, allocations: 4.031 kB / 402.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003764/0.37, allocations: 3.272 MB / 405.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000269/0.3703, allocations: 208.2 kB / 406 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.3704, allocations: 20 kB / 406.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.3718, allocations: 355.2 kB / 406.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/0.3731, allocations: 0.6393 MB / 407.1 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.98e-05/0.3732, allocations: 31.95 kB / 407.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000563/0.3737, allocations: 0.6709 MB / 407.8 MB, free: 148 kB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3737, allocations: 0 / 407.8 MB, free: 148 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008502/0.3746, allocations: 191 kB / 407.9 MB, free: 15.96 MB / 318.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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00512/0.3797, allocations: 3.867 MB / 411.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003166/0.3829, allocations: 1.95 MB / 413.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.3829, allocations: 0 / 413.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.3848, allocations: 1.099 MB / 414.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007189/0.3855, allocations: 75.44 kB / 414.9 MB, free: 8.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.3984, allocations: 8.489 MB / 423.4 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.399, allocations: 0.9221 MB / 424.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.3993, allocations: 39.28 kB / 424.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.3996, allocations: 195.4 kB / 424.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of SimCode: time 2.044e-06/0.3996, allocations: 0 / 424.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05441/0.454, allocations: 26.64 MB / 451.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.4542, allocations: 221.5 kB / 451.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.328/2.782, allocations: 0 / 451.4 MB, free: 4.445 MB / 350.1 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