Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",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.0009121/0.0009122, allocations: 89.02 kB / 16.31 MB, free: 5.637 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.001036/0.001036, allocations: 177.7 kB / 17.2 MB, free: 5.559 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.417/1.417, allocations: 223.3 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.000272, allocations: 6.344 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 50.42 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005009/0.13, allocations: 3.017 MB / 354.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.1324, allocations: 0.8492 MB / 355.2 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005213/0.1329, allocations: 11.94 kB / 355.2 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00035/0.1333, allocations: 55.53 kB / 355.3 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006989/0.134, allocations: 123 kB / 355.4 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006285/0.1347, allocations: 119.7 kB / 355.5 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1357, allocations: 0.5373 MB / 356 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004322/0.1362, allocations: 146.1 kB / 356.2 MB, free: 6.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005003/0.1367, allocations: 203.3 kB / 356.4 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005542/0.1372, allocations: 239 kB / 356.6 MB, free: 6.324 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.1374, allocations: 28 kB / 356.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.1376, allocations: 28 kB / 356.7 MB, free: 6.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.1377, allocations: 79.67 kB / 356.7 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1379, allocations: 121.4 kB / 356.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000736/0.1387, allocations: 434.7 kB / 357.3 MB, free: 5.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1387, allocations: 0 / 357.3 MB, free: 5.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1387, allocations: 0 / 357.3 MB, free: 5.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.992e-05/0.1387, allocations: 0 / 357.3 MB, free: 5.641 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002186/0.1409, allocations: 0.7991 MB / 358.1 MB, free: 4.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.141, allocations: 15.97 kB / 358.1 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001978/0.1412, allocations: 82.52 kB / 358.2 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.1414, allocations: 63.3 kB / 358.2 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.142, allocations: 314.2 kB / 358.6 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.642e-05/0.1421, allocations: 36.94 kB / 358.6 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1422, allocations: 51.91 kB / 358.6 MB, free: 4.195 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1436, allocations: 466.4 kB / 359.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.1437, allocations: 0 / 359.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.1438, allocations: 20 kB / 359.1 MB, free: 3.715 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.1438, allocations: 15.95 kB / 359.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1453, allocations: 491.7 kB / 359.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.1486, allocations: 1.397 MB / 361 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.15, allocations: 0.5558 MB / 361.6 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.1511, allocations: 386.8 kB / 361.9 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.947e-05/0.1511, allocations: 8.562 kB / 361.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.1512, allocations: 47.11 kB / 362 MB, free: 0.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.996e-06/0.1512, allocations: 0 / 362 MB, free: 0.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=103): time 0.007572/0.1588, allocations: 3.287 MB / 365.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.1588, allocations: 64.41 kB / 365.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.1592, allocations: 258.9 kB / 365.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.556e-05/0.1592, allocations: 45.64 kB / 365.6 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1594, allocations: 189.3 kB / 365.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.1596, allocations: 354.8 kB / 366.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.1597, allocations: 16 kB / 366.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1599, allocations: 362.8 kB / 366.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/0.1605, allocations: 289.8 kB / 366.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006466/0.1611, allocations: 361.4 kB / 367.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006421/0.1618, allocations: 322.9 kB / 367.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.1618, allocations: 0 / 367.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001502/0.1633, allocations: 0.8132 MB / 368.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.1633, allocations: 8 kB / 368.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1634, allocations: 0 / 368.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.1634, allocations: 8 kB / 368.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007828/0.1642, allocations: 215.8 kB / 368.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.126e-05/0.1642, allocations: 4 kB / 368.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003769/0.1646, allocations: 55.97 kB / 368.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.048e-05/0.1647, allocations: 35.92 kB / 368.6 MB, free: 9.977 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.1649, allocations: 189.7 kB / 368.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.165, allocations: 55.34 kB / 368.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000186/0.1652, allocations: 81.39 kB / 368.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.1652, allocations: 8 kB / 369 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.1653, allocations: 4 kB / 369 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.147e-05/0.1653, allocations: 7.969 kB / 369 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.1686, allocations: 2.022 MB / 371 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.1686, allocations: 7.953 kB / 371 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007878/0.1694, allocations: 211.7 kB / 371.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.1695, allocations: 12 kB / 371.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.237e-05/0.1695, allocations: 31.97 kB / 371.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.606e-05/0.1696, allocations: 16.09 kB / 371.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/0.1696, allocations: 8 kB / 371.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/0.1719, allocations: 1.422 MB / 372.7 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.1721, allocations: 128.4 kB / 372.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.1722, allocations: 31.98 kB / 372.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/0.1726, allocations: 55.97 kB / 372.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1727, allocations: 76.8 kB / 373 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.1728, allocations: 35.98 kB / 373 MB, free: 5.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.173, allocations: 178 kB / 373.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.173, allocations: 0 / 373.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005889/0.1736, allocations: 148 kB / 373.3 MB, free: 5.055 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002731/0.1763, allocations: 1.991 MB / 375.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.1779, allocations: 0.7582 MB / 376.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.1779, allocations: 4 kB / 376.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008196/0.1787, allocations: 458.7 kB / 376.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008091/0.1795, allocations: 115 kB / 376.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006469/0.186, allocations: 3.755 MB / 380.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.1866, allocations: 0.8687 MB / 381.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003436/0.1869, allocations: 84.91 kB / 381.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003312/0.1873, allocations: 195.4 kB / 381.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1873, allocations: 0 / 381.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.2154, allocations: 10.45 MB / 392 MB, free: 2.359 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/0.2157, allocations: 192.2 kB / 392.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.278, allocations: 0 / 392.2 MB, free: 2.121 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat