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.001266/0.001266, allocations: 95.86 kB / 16.3 MB, free: 5.566 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.001291/0.001291, allocations: 180.1 kB / 17.2 MB, free: 5.5 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.339/1.339, allocations: 223.2 MB / 241.1 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002827, allocations: 12.77 kB / 300.8 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1098, allocations: 50.41 MB / 351.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003209/0.1131, allocations: 2.427 MB / 353.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.115, allocations: 1.104 MB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.1153, allocations: 4 kB / 354.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.1156, allocations: 59.59 kB / 354.8 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.1159, allocations: 143.6 kB / 355 MB, free: 160 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.1167, allocations: 334.3 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005579/0.1173, allocations: 464.2 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.1175, allocations: 77.42 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.1179, allocations: 319.1 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.1193, allocations: 1.416 MB / 357.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.268e-05/0.1194, allocations: 36 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.1196, allocations: 71.95 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.1198, allocations: 199.4 kB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.1199, allocations: 121.4 kB / 358 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005808/0.1205, allocations: 0.608 MB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1205, allocations: 0 / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1205, allocations: 0 / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1205, allocations: 0 / 358.6 MB, free: 12.54 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.003458/0.124, allocations: 1.305 MB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1241, allocations: 12.03 kB / 359.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.1242, allocations: 82.47 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.1244, allocations: 79.06 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005629/0.1249, allocations: 394.8 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.618e-05/0.125, allocations: 29 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.1251, allocations: 39.98 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.1268, allocations: 1.165 MB / 361.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.1269, allocations: 4 kB / 361.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.855e-05/0.1269, allocations: 16 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.127, allocations: 11.95 kB / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.1296, allocations: 1.772 MB / 363.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004386/0.134, allocations: 2.557 MB / 366 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.1356, allocations: 0.9382 MB / 367 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.739e-05/0.1357, allocations: 4 kB / 367 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001613/0.1373, allocations: 0.9161 MB / 367.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.325e-06/0.1374, allocations: 4 kB / 367.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2434/0.3808, allocations: 6.019 MB / 373.9 MB, free: 25.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.3808, allocations: 82.48 kB / 374 MB, free: 25.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.382, allocations: 0.9146 MB / 374.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.542e-05/0.3821, allocations: 48.33 kB / 374.9 MB, free: 25.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.3823, allocations: 297.3 kB / 375.2 MB, free: 25.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3825, allocations: 169.2 kB / 375.4 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.3825, allocations: 9.609 kB / 375.4 MB, free: 25.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3826, allocations: 384.9 kB / 375.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.384, allocations: 0.856 MB / 376.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.3854, allocations: 0.9535 MB / 377.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.3866, allocations: 0.7834 MB / 378.4 MB, free: 24.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3866, allocations: 2.438 kB / 378.4 MB, free: 24.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00384/0.3904, allocations: 2.492 MB / 380.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.3905, allocations: 7.391 kB / 380.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3905, allocations: 2.281 kB / 380.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/0.3928, allocations: 1.898 MB / 382.8 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.3934, allocations: 124.2 kB / 382.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007273/0.4007, allocations: 6.452 MB / 389.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.4022, allocations: 307.5 kB / 389.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.4024, allocations: 26.62 kB / 389.7 MB, free: 18.3 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.0004678/0.4029, allocations: 248.3 kB / 389.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.403, allocations: 76.28 kB / 390 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.4032, allocations: 98.27 kB / 390.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.4032, allocations: 8 kB / 390.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.4033, allocations: 7.422 kB / 390.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.4033, allocations: 6.203 kB / 390.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.4071, allocations: 3.131 MB / 393.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.4071, allocations: 3.609 kB / 393.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004506/0.4076, allocations: 102.1 kB / 393.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/0.4091, allocations: 1.864 MB / 395.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.244e-05/0.4091, allocations: 27.97 kB / 395.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005928/0.4151, allocations: 6.181 MB / 401.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4151, allocations: 4.062 kB / 401.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004553/0.4197, allocations: 3.308 MB / 404.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004204/0.4201, allocations: 212.1 kB / 404.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.4203, allocations: 20 kB / 405 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.4219, allocations: 351.6 kB / 405.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001263/0.4232, allocations: 0.6432 MB / 405.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4233, allocations: 23.97 kB / 406 MB, free: 2.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000667/0.424, allocations: 0.6825 MB / 406.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.424, allocations: 0 / 406.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009133/0.4249, allocations: 184 kB / 406.8 MB, free: 1.379 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005465/0.4304, allocations: 4.106 MB / 410.9 MB, free: 13.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003875/0.4343, allocations: 1.941 MB / 412.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/0.4344, allocations: 0 / 412.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.4363, allocations: 1.112 MB / 414 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.4369, allocations: 62.36 kB / 414 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.4519, allocations: 9.773 MB / 423.8 MB, free: 196 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006683/0.4526, allocations: 0.9378 MB / 424.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.4529, allocations: 43.27 kB / 424.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.4533, allocations: 199.3 kB / 425 MB, free: 15 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4533, allocations: 4 kB / 425 MB, free: 15 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04814/0.5014, allocations: 26.59 MB / 451.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.5017, allocations: 222 kB / 451.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/2.887, allocations: 4 kB / 451.8 MB, free: 4.352 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