Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_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.001108/0.001108, allocations: 94.77 kB / 16.96 MB, free: 6.098 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.001469/0.001469, allocations: 179.3 kB / 17.84 MB, free: 5.723 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.629/1.629, allocations: 205.4 MB / 224 MB, free: 13.07 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.0005808/0.0005808, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1165, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003428/0.1199, allocations: 3.007 MB / 331.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1214, allocations: 0.8697 MB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.1216, allocations: 11.94 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.1218, allocations: 55.55 kB / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.122, allocations: 127 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.1224, allocations: 107.9 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000534/0.1229, allocations: 0.5528 MB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.1232, allocations: 154 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1234, allocations: 191.3 kB / 333.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.1237, allocations: 239 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.1238, allocations: 24 kB / 333.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.1238, allocations: 32 kB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.921e-05/0.1239, allocations: 91.66 kB / 333.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.124, allocations: 113.5 kB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.1244, allocations: 431 kB / 334.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.1244, allocations: 7.984 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1244, allocations: 0 / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1245, allocations: 0 / 334.4 MB, free: 13.96 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.00144/0.1259, allocations: 0.7913 MB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.126, allocations: 8.031 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1261, allocations: 86.52 kB / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.014e-05/0.1262, allocations: 55.34 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.1266, allocations: 322.1 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.1266, allocations: 37 kB / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-05/0.1267, allocations: 47.91 kB / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000905/0.1276, allocations: 466.4 kB / 336.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/0.1277, allocations: 8 kB / 336.2 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.1277, allocations: 23.94 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.1278, allocations: 15.81 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1288, allocations: 491.7 kB / 336.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.1314, allocations: 1.39 MB / 338.1 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.1323, allocations: 0.5583 MB / 338.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007274/0.1331, allocations: 390.9 kB / 339.1 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.75e-05/0.1331, allocations: 12.55 kB / 339.1 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1332, allocations: 39.12 kB / 339.1 MB, free: 9.078 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.365e-06/0.1332, allocations: 0 / 339.1 MB, free: 9.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=103): time 0.007127/0.1403, allocations: 3.289 MB / 342.4 MB, free: 5.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.1404, allocations: 64.34 kB / 342.5 MB, free: 5.633 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.1407, allocations: 251 kB / 342.7 MB, free: 5.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.384e-05/0.1407, allocations: 41.7 kB / 342.8 MB, free: 5.324 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1409, allocations: 197.2 kB / 343 MB, free: 5.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.1412, allocations: 350.8 kB / 343.3 MB, free: 4.777 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.1413, allocations: 20 kB / 343.3 MB, free: 4.758 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1415, allocations: 358.8 kB / 343.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005407/0.142, allocations: 293.8 kB / 344 MB, free: 4.109 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006674/0.1427, allocations: 357.4 kB / 344.3 MB, free: 3.754 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.1433, allocations: 318.9 kB / 344.6 MB, free: 3.445 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1433, allocations: 0 / 344.6 MB, free: 3.445 MB / 286.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001475/0.1448, allocations: 0.8172 MB / 345.4 MB, free: 2.617 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.1448, allocations: 4 kB / 345.4 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1448, allocations: 0 / 345.4 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.1449, allocations: 7.953 kB / 345.4 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007629/0.1457, allocations: 219.7 kB / 345.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1457, allocations: 4 kB / 345.7 MB, free: 2.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.146, allocations: 63.95 kB / 345.7 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.146, allocations: 28 kB / 345.8 MB, free: 2.297 MB / 286.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.0002298/0.1463, allocations: 197.6 kB / 345.9 MB, free: 2.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.434e-05/0.1464, allocations: 51.44 kB / 346 MB, free: 2.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.1465, allocations: 69.39 kB / 346.1 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.1466, allocations: 15.95 kB / 346.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.1466, allocations: 4 kB / 346.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.1466, allocations: 3.984 kB / 346.1 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.1496, allocations: 2.037 MB / 348.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.1496, allocations: 7.938 kB / 348.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/0.1504, allocations: 216.3 kB / 348.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.1504, allocations: 8 kB / 348.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.1505, allocations: 31.98 kB / 348.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/0.1505, allocations: 8 kB / 348.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.1505, allocations: 11.89 kB / 348.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.1527, allocations: 1.415 MB / 349.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1529, allocations: 128.6 kB / 349.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.748e-05/0.1529, allocations: 20 kB / 350 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/0.1533, allocations: 63.95 kB / 350 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1534, allocations: 76.81 kB / 350.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-05/0.1535, allocations: 35.98 kB / 350.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.1536, allocations: 178 kB / 350.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1537, allocations: 0 / 350.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000468/0.1541, allocations: 156 kB / 350.5 MB, free: 13.38 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.002419/0.1566, allocations: 1.998 MB / 352.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.1579, allocations: 0.7544 MB / 353.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1579, allocations: 4 kB / 353.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000744/0.1586, allocations: 466.6 kB / 353.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.1594, allocations: 108.8 kB / 353.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/0.1649, allocations: 3.759 MB / 357.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/0.1654, allocations: 0.8609 MB / 358.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003374/0.1658, allocations: 80.97 kB / 358.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.1661, allocations: 199.3 kB / 358.7 MB, free: 4.938 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1661, allocations: 0 / 358.7 MB, free: 4.938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03025/0.1964, allocations: 10.46 MB / 369.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002546/0.1967, allocations: 183.1 kB / 369.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.351, allocations: 3.938 kB / 369.3 MB, free: 10.23 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat