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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008159/0.0008157, allocations: 92.89 kB / 16.95 MB, free: 6.105 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.0009126/0.0009126, allocations: 180.8 kB / 17.84 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004962/0.0004962, allocations: 8 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1134, allocations: 47.58 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00316/0.1166, allocations: 2.533 MB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1188, allocations: 1.143 MB / 332.1 MB, free: 288 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.119, allocations: 11.94 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004039/0.1194, allocations: 67.59 kB / 332.2 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.1196, allocations: 91.19 kB / 332.3 MB, free: 116 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008167/0.1204, allocations: 339.3 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000648/0.1211, allocations: 0.6825 MB / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1213, allocations: 77.44 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004036/0.1217, allocations: 319 kB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001592/0.1233, allocations: 1.431 MB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.1234, allocations: 36 kB / 335.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.1236, allocations: 79.89 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.1238, allocations: 191.4 kB / 335.4 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.124, allocations: 125.3 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.1247, allocations: 0.6042 MB / 336.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.1247, allocations: 0 / 336.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1248, allocations: 4 kB / 336.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1248, allocations: 0 / 336.2 MB, free: 12.23 MB / 286.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.003233/0.128, allocations: 1.321 MB / 337.5 MB, free: 10.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/0.1281, allocations: 12.03 kB / 337.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.1282, allocations: 70.53 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1284, allocations: 79.06 kB / 337.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.1289, allocations: 398.8 kB / 338 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-05/0.129, allocations: 32.94 kB / 338.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.058e-05/0.1291, allocations: 39.91 kB / 338.1 MB, free: 10.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.1309, allocations: 1.169 MB / 339.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.131, allocations: 0 / 339.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.887e-05/0.131, allocations: 16 kB / 339.3 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.131, allocations: 15.92 kB / 339.3 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.1336, allocations: 1.779 MB / 341.1 MB, free: 7.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.1376, allocations: 2.549 MB / 343.6 MB, free: 4.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1391, allocations: 0.9342 MB / 344.6 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.1402, allocations: 0.7319 MB / 345.3 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.217e-05/0.1402, allocations: 8 kB / 345.3 MB, free: 2.867 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/0.1416, allocations: 0.92 MB / 346.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.004e-06/0.1416, allocations: 0 / 346.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01035/0.152, allocations: 6.034 MB / 352.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1521, allocations: 81.11 kB / 352.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.1532, allocations: 0.918 MB / 353.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.696e-05/0.1533, allocations: 45.7 kB / 353.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.1536, allocations: 292.3 kB / 353.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.1538, allocations: 162 kB / 353.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.1538, allocations: 16 kB / 353.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.154, allocations: 382.7 kB / 354.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.1552, allocations: 0.8603 MB / 355 MB, free: 8.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.1565, allocations: 0.9519 MB / 355.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.1576, allocations: 0.7731 MB / 356.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/0.1577, allocations: 4 kB / 356.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00356/0.1612, allocations: 2.483 MB / 359.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1613, allocations: 12.03 kB / 359.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1613, allocations: 4 kB / 359.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/0.1635, allocations: 1.908 MB / 361.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.164, allocations: 123.8 kB / 361.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008535/0.1725, allocations: 6.451 MB / 367.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.174, allocations: 303.6 kB / 368 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.1741, allocations: 23.98 kB / 368 MB, free: 11.57 MB / 318.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.0005974/0.1747, allocations: 252 kB / 368.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/0.175, allocations: 75.11 kB / 368.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.1754, allocations: 102.2 kB / 368.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.1755, allocations: 8 kB / 368.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.1755, allocations: 4 kB / 368.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1755, allocations: 3.984 kB / 368.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005025/0.1805, allocations: 3.129 MB / 371.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.1806, allocations: 0 / 371.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/0.1811, allocations: 92 kB / 371.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/0.1833, allocations: 1.869 MB / 373.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.596e-05/0.1834, allocations: 27.95 kB / 373.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2332/0.4166, allocations: 6.145 MB / 379.7 MB, free: 54.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4166, allocations: 2.688 kB / 379.7 MB, free: 54.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005513/0.4221, allocations: 3.278 MB / 383 MB, free: 53.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.4226, allocations: 211.5 kB / 383.2 MB, free: 53.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.4227, allocations: 20.09 kB / 383.2 MB, free: 53.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/0.4243, allocations: 348.3 kB / 383.6 MB, free: 53.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001565/0.4258, allocations: 0.6455 MB / 384.2 MB, free: 53.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.4259, allocations: 32.42 kB / 384.2 MB, free: 53.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008275/0.4267, allocations: 0.6733 MB / 384.9 MB, free: 53.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4268, allocations: 0 / 384.9 MB, free: 53.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008716/0.4276, allocations: 185.9 kB / 385.1 MB, free: 53.67 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.005128/0.4328, allocations: 3.866 MB / 389 MB, free: 52.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002954/0.4357, allocations: 1.941 MB / 390.9 MB, free: 52.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.4358, allocations: 1.406 kB / 390.9 MB, free: 52.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.4372, allocations: 1.091 MB / 392 MB, free: 51.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005803/0.4378, allocations: 75.36 kB / 392.1 MB, free: 51.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009229/0.447, allocations: 8.5 MB / 400.6 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.4474, allocations: 0.9275 MB / 401.5 MB, free: 43.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.4476, allocations: 46.56 kB / 401.5 MB, free: 43.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.4478, allocations: 195.4 kB / 401.7 MB, free: 42.93 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4478, allocations: 2.719 kB / 401.7 MB, free: 42.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08102/0.5289, allocations: 26.62 MB / 428.3 MB, free: 16.31 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.5291, allocations: 232.8 kB / 428.6 MB, free: 16.05 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.516/3.046, allocations: 3.938 kB / 428.6 MB, free: 16.05 MB / 318.1 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) Environment - environmentSimulation: 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