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.0008498/0.0008497, allocations: 94.97 kB / 16.3 MB, free: 6.457 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.0009302/0.0009303, allocations: 172 kB / 17.19 MB, free: 6.348 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.386/1.386, allocations: 223.2 MB / 241.1 MB, free: 380 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003119, allocations: 4 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1142, allocations: 50.4 MB / 351.2 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003518/0.1178, allocations: 2.847 MB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.1196, allocations: 0.8613 MB / 354.9 MB, free: 220 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000429/0.1201, allocations: 15.94 kB / 354.9 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.1203, allocations: 55.53 kB / 355 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006302/0.1209, allocations: 163.6 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006195/0.1216, allocations: 127.6 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008504/0.1224, allocations: 399.8 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.1228, allocations: 150.1 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003164/0.1231, allocations: 191.3 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002949/0.1234, allocations: 239 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.878e-05/0.1235, allocations: 24 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.1235, allocations: 28 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.648e-05/0.1236, allocations: 91.66 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.1238, allocations: 117.5 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.1242, allocations: 434.9 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1242, allocations: 0 / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1242, allocations: 0 / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1242, allocations: 0 / 356.9 MB, free: 14.21 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001522/0.1257, allocations: 0.7991 MB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1258, allocations: 8.031 kB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.486e-05/0.1259, allocations: 86.52 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/0.126, allocations: 59.3 kB / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.1263, allocations: 314 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.1264, allocations: 40.98 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.667e-05/0.1265, allocations: 48 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008897/0.1274, allocations: 458.4 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.1274, allocations: 7.906 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.1275, allocations: 23.98 kB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.1275, allocations: 15.95 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.1286, allocations: 495.6 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.131, allocations: 1.39 MB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.1319, allocations: 0.5547 MB / 361.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.132, allocations: 8.562 kB / 361.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.132, allocations: 43.11 kB / 361.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 1.984e-06/0.1321, allocations: 4 kB / 361.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=103): time 0.007916/0.14, allocations: 3.273 MB / 364.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.1401, allocations: 64.41 kB / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.1404, allocations: 255 kB / 364.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.1404, allocations: 41.64 kB / 364.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.1406, allocations: 197.2 kB / 365.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.1409, allocations: 350.9 kB / 365.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.705e-05/0.141, allocations: 23.94 kB / 365.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.1412, allocations: 362.8 kB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006014/0.1418, allocations: 289.8 kB / 366.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.1424, allocations: 361.4 kB / 366.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.1431, allocations: 310.9 kB / 366.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1431, allocations: 3.953 kB / 366.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.00148/0.1446, allocations: 0.8171 MB / 367.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.1446, allocations: 4 kB / 367.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1446, allocations: 0 / 367.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1446, allocations: 4 kB / 367.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/0.1454, allocations: 219.8 kB / 367.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.1455, allocations: 4 kB / 367.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.1458, allocations: 55.97 kB / 367.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.1459, allocations: 39.92 kB / 367.9 MB, free: 2.949 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.0002527/0.1462, allocations: 185.7 kB / 368 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-05/0.1463, allocations: 59.3 kB / 368.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.1464, allocations: 73.39 kB / 368.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.1464, allocations: 8 kB / 368.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.1464, allocations: 4 kB / 368.2 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.1464, allocations: 3.984 kB / 368.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.1495, allocations: 2.029 MB / 370.2 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.1495, allocations: 4 kB / 370.2 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.1505, allocations: 220.2 kB / 370.4 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.776e-05/0.1505, allocations: 8 kB / 370.4 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.991e-05/0.1506, allocations: 23.98 kB / 370.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.592e-05/0.1506, allocations: 15.94 kB / 370.5 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.1506, allocations: 4 kB / 370.5 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2062/0.3569, allocations: 1.629 MB / 372.1 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.3571, allocations: 125.6 kB / 372.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.017e-05/0.3572, allocations: 34.16 kB / 372.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3576, allocations: 61.44 kB / 372.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.3578, allocations: 75.66 kB / 372.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.461e-05/0.3579, allocations: 33.31 kB / 372.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.3581, allocations: 176.7 kB / 372.6 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3581, allocations: 3.188 kB / 372.6 MB, free: 23.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006166/0.3587, allocations: 154.5 kB / 372.8 MB, free: 23.77 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.002911/0.3616, allocations: 3.505 MB / 376.3 MB, free: 21.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.3631, allocations: 0.7511 MB / 377 MB, free: 21.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.3631, allocations: 1.375 kB / 377 MB, free: 21.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007683/0.3639, allocations: 462.1 kB / 377.5 MB, free: 21.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.3645, allocations: 93.53 kB / 377.6 MB, free: 21.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/0.3705, allocations: 4.043 MB / 381.6 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.3709, allocations: 0.8793 MB / 382.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.3712, allocations: 73.14 kB / 382.6 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.3715, allocations: 198.7 kB / 382.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3715, allocations: 0 / 382.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.3953, allocations: 10.39 MB / 393.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.3956, allocations: 188.7 kB / 393.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.356, allocations: 0 / 393.3 MB, free: 14.31 MB / 302.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