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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001708/0.001708, allocations: 177.1 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.812/1.812, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 78.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.14e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09412, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3216/0.4158, allocations: 77.46 MB / 440.6 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.416, allocations: 67.7 kB / 440.7 MB, free: 1.914 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02342/0.4395, allocations: 9.212 MB / 449.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4395, allocations: 0.75 kB / 449.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.157e-05/0.4395, allocations: 11.98 kB / 449.9 MB, free: 10.31 MB / 330.7 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.001151/0.4407, allocations: 0.7205 MB / 450.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4407, allocations: 8.031 kB / 450.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.289e-05/0.4408, allocations: 55.34 kB / 450.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.4412, allocations: 313.3 kB / 451 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.4412, allocations: 16 kB / 451 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.4413, allocations: 28 kB / 451 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005307/0.4418, allocations: 349.8 kB / 451.4 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.4424, allocations: 348.6 kB / 451.7 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.4424, allocations: 0 / 451.7 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.4425, allocations: 0 / 451.7 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.4425, allocations: 12 kB / 451.7 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.4444, allocations: 1.308 MB / 453 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005722/0.445, allocations: 466.4 kB / 453.5 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004875/0.4455, allocations: 307.8 kB / 453.8 MB, free: 7.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/0.4456, allocations: 12.52 kB / 453.8 MB, free: 7.129 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.4456, allocations: 45.05 kB / 453.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 1.854e-06/0.4456, allocations: 8 kB / 453.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=103): time 0.003197/0.4488, allocations: 2.211 MB / 456.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.4488, allocations: 64.67 kB / 456.1 MB, free: 5.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.449, allocations: 199.1 kB / 456.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.4491, allocations: 25.7 kB / 456.4 MB, free: 4.953 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.4492, allocations: 203.1 kB / 456.6 MB, free: 4.789 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.4494, allocations: 330.3 kB / 456.9 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.4494, allocations: 4 kB / 456.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.4495, allocations: 362.7 kB / 457.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/0.4498, allocations: 208.3 kB / 457.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.4502, allocations: 278.5 kB / 457.7 MB, free: 3.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.4505, allocations: 234.5 kB / 457.9 MB, free: 3.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4505, allocations: 0 / 457.9 MB, free: 3.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0008138/0.4513, allocations: 0.6297 MB / 458.6 MB, free: 3.242 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.4513, allocations: 8 kB / 458.6 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4513, allocations: 0 / 458.6 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.4514, allocations: 4 kB / 458.6 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.4521, allocations: 221.4 kB / 458.8 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.4521, allocations: 4 kB / 458.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.4525, allocations: 47.97 kB / 458.9 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.615e-05/0.4525, allocations: 31.17 kB / 458.9 MB, free: 2.949 MB / 330.7 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 () * 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.0001148/0.4526, allocations: 120.8 kB / 459 MB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007587/0.4534, allocations: 0.5862 MB / 459.6 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/0.4535, allocations: 50.44 kB / 459.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.4536, allocations: 59.8 kB / 459.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4536, allocations: 15.94 kB / 459.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.4537, allocations: 3.953 kB / 459.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.4537, allocations: 7.969 kB / 459.7 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.4557, allocations: 1.732 MB / 461.5 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4557, allocations: 4.594 kB / 461.5 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.4565, allocations: 218.8 kB / 461.7 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.298e-06/0.4565, allocations: 8 kB / 461.7 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.313e-05/0.4566, allocations: 19.8 kB / 461.7 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.4566, allocations: 8 kB / 461.7 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.4566, allocations: 11.94 kB / 461.7 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.458, allocations: 1.387 MB / 463.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.964e-05/0.4581, allocations: 128.4 kB / 463.2 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.4581, allocations: 8 kB / 463.2 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.4585, allocations: 47.91 kB / 463.3 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.4586, allocations: 71.64 kB / 463.4 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.4587, allocations: 39 kB / 463.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.4588, allocations: 156.2 kB / 463.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4588, allocations: 0 / 463.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.4592, allocations: 120 kB / 463.7 MB, free: 14.81 MB / 346.7 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 () * 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.001906/0.4611, allocations: 3.25 MB / 466.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007414/0.4619, allocations: 0.5872 MB / 467.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4619, allocations: 0 / 467.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004646/0.4624, allocations: 376.5 kB / 467.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.4629, allocations: 79.38 kB / 467.9 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.465, allocations: 1.298 MB / 469.2 MB, free: 9.734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4654, allocations: 0.8844 MB / 470.1 MB, free: 8.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.4657, allocations: 72.89 kB / 470.2 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.4659, allocations: 195.8 kB / 470.4 MB, free: 8.68 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.466, allocations: 4 kB / 470.4 MB, free: 8.676 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.4993, allocations: 9.918 MB / 480.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.4996, allocations: 144.4 kB / 480.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/2.73, allocations: 0 / 480.5 MB, free: 14.55 MB / 362.7 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) 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