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.0009675/0.0009676, allocations: 97.61 kB / 16.94 MB, free: 5.98 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.001013/0.001013, allocations: 181.9 kB / 17.82 MB, free: 5.648 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.516/1.516, 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.0005066/0.0005066, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1167, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003514/0.1203, allocations: 2.409 MB / 330.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1223, allocations: 1.151 MB / 332 MB, free: 424 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.1225, allocations: 4 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.1228, allocations: 63.59 kB / 332 MB, free: 356 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1231, allocations: 143.6 kB / 332.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007773/0.1238, allocations: 323.4 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005205/0.1244, allocations: 460.2 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.1246, allocations: 85.42 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003663/0.1249, allocations: 311.1 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.1263, allocations: 1.416 MB / 334.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.454e-05/0.1264, allocations: 35.94 kB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.1266, allocations: 71.97 kB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1268, allocations: 199.4 kB / 335.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.127, allocations: 125.4 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006125/0.1276, allocations: 0.6003 MB / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1276, allocations: 3.938 kB / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1276, allocations: 0 / 335.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1276, allocations: 0 / 335.8 MB, free: 12.6 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.003581/0.1312, allocations: 1.321 MB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.1313, allocations: 8.031 kB / 337.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.1314, allocations: 74.53 kB / 337.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.1316, allocations: 75.06 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.1322, allocations: 402.8 kB / 337.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.1322, allocations: 29 kB / 337.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.665e-05/0.1323, allocations: 35.91 kB / 337.7 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.1341, allocations: 1.165 MB / 338.9 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.1341, allocations: 7.938 kB / 338.9 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.267e-05/0.1342, allocations: 16 kB / 338.9 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1342, allocations: 8 kB / 338.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002602/0.1368, allocations: 1.771 MB / 340.7 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004341/0.1412, allocations: 2.557 MB / 343.2 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.1428, allocations: 0.9343 MB / 344.2 MB, free: 3.988 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.763e-05/0.1429, allocations: 12.27 kB / 344.2 MB, free: 3.977 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001453/0.1443, allocations: 0.9162 MB / 345.1 MB, free: 3.039 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.735e-06/0.1444, allocations: 3.938 kB / 345.1 MB, free: 3.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01139/0.1558, allocations: 6.021 MB / 351.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.1559, allocations: 89.05 kB / 351.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.1572, allocations: 0.9141 MB / 352.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.381e-05/0.1573, allocations: 45.7 kB / 352.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003069/0.1576, allocations: 300.3 kB / 352.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.1578, allocations: 165.9 kB / 352.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.1579, allocations: 16 kB / 352.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.1581, allocations: 382.7 kB / 353 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.1593, allocations: 0.8603 MB / 353.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.1607, allocations: 0.948 MB / 354.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.1619, allocations: 0.7809 MB / 355.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.1619, allocations: 0 / 355.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003868/0.1658, allocations: 2.483 MB / 358.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.1658, allocations: 6.812 kB / 358.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1658, allocations: 8.031 kB / 358.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.168, allocations: 1.896 MB / 360 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/0.1685, allocations: 131.7 kB / 360.1 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008404/0.1769, allocations: 6.463 MB / 366.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.1785, allocations: 304 kB / 366.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.808e-05/0.1786, allocations: 20 kB / 366.9 MB, free: 12.67 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.0005127/0.1791, allocations: 256 kB / 367.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.1792, allocations: 67.16 kB / 367.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.1794, allocations: 114.3 kB / 367.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.1794, allocations: 7.984 kB / 367.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1795, allocations: 0 / 367.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.1795, allocations: 0 / 367.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004273/0.1837, allocations: 3.142 MB / 370.5 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.1838, allocations: 0 / 370.5 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.1843, allocations: 91.94 kB / 370.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/0.1862, allocations: 1.869 MB / 372.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.1863, allocations: 19.97 kB / 372.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006837/0.1931, allocations: 6.176 MB / 378.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.1932, allocations: 7.891 kB / 378.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2339/0.427, allocations: 3.296 MB / 381.9 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.4276, allocations: 209.4 kB / 382.1 MB, free: 54.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.4277, allocations: 28.44 kB / 382.2 MB, free: 54.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/0.4295, allocations: 358.2 kB / 382.5 MB, free: 54.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001765/0.4313, allocations: 0.6385 MB / 383.2 MB, free: 54.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.4314, allocations: 29.77 kB / 383.2 MB, free: 54.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001079/0.4325, allocations: 0.672 MB / 383.9 MB, free: 54.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4325, allocations: 1 kB / 383.9 MB, free: 54.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001214/0.4338, allocations: 189 kB / 384.1 MB, free: 54.57 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.007009/0.4408, allocations: 4.107 MB / 388.2 MB, free: 53.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003722/0.4445, allocations: 1.943 MB / 390.1 MB, free: 52.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.203e-05/0.4446, allocations: 0 / 390.1 MB, free: 52.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.4466, allocations: 1.103 MB / 391.2 MB, free: 52.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005717/0.4472, allocations: 58.67 kB / 391.3 MB, free: 52.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.458, allocations: 9.777 MB / 401 MB, free: 44.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.4585, allocations: 0.9403 MB / 402 MB, free: 43.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002282/0.4587, allocations: 35.28 kB / 402 MB, free: 43.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.459, allocations: 203.3 kB / 402.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of SimCode: time 1.754e-06/0.459, allocations: 0 / 402.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03982/0.4988, allocations: 26.59 MB / 428.8 MB, free: 16.27 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.499, allocations: 227.6 kB / 429 MB, free: 16.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/2.934, allocations: 0 / 429 MB, free: 16.01 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