Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008784/0.0008786, allocations: 99.06 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002175/0.0002173, allocations: 7.984 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2068, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09068/0.2975, allocations: 79.91 MB / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.2978, allocations: 73.33 kB / 489.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02564/0.3234, allocations: 9.649 MB / 499.1 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3234, allocations: 0 / 499.1 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.3235, allocations: 12 kB / 499.1 MB, free: 0.9414 MB / 362.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.001386/0.3249, allocations: 0.7683 MB / 499.9 MB, free: 128 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3249, allocations: 12.03 kB / 499.9 MB, free: 116 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.325, allocations: 82.52 kB / 500 MB, free: 24 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.3253, allocations: 67.33 kB / 0.4883 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.3256, allocations: 310.2 kB / 0.4886 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.3257, allocations: 37 kB / 0.4887 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-05/0.3257, allocations: 44 kB / 0.4887 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009008/0.3267, allocations: 466.3 kB / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3267, allocations: 3.906 kB / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.348e-05/0.3267, allocations: 27.98 kB / 0.4892 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3268, allocations: 12 kB / 0.4892 GB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009971/0.3278, allocations: 491.7 kB / 0.4897 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/0.3303, allocations: 1.386 MB / 0.491 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.3313, allocations: 0.5637 MB / 0.4916 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-05/0.3314, allocations: 16.42 kB / 0.4916 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.3314, allocations: 43.12 kB / 0.4916 GB, free: 12.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.224e-06/0.3314, allocations: 0 / 0.4916 GB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=103): time 0.007427/0.3389, allocations: 3.283 MB / 0.4948 GB, free: 9.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.3389, allocations: 64.34 kB / 0.4949 GB, free: 9.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.3391, allocations: 214.2 kB / 0.4951 GB, free: 8.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.974e-05/0.3392, allocations: 45.69 kB / 0.4951 GB, free: 8.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.3394, allocations: 197.2 kB / 0.4953 GB, free: 8.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.3396, allocations: 350.9 kB / 0.4957 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.3397, allocations: 20 kB / 0.4957 GB, free: 8.184 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3399, allocations: 362.8 kB / 0.496 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006442/0.3405, allocations: 289.9 kB / 0.4963 GB, free: 7.535 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006418/0.3412, allocations: 357.4 kB / 0.4967 GB, free: 7.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006427/0.3418, allocations: 314.9 kB / 0.497 GB, free: 6.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3418, allocations: 0 / 0.497 GB, free: 6.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001481/0.3433, allocations: 0.8093 MB / 0.4977 GB, free: 6.055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3434, allocations: 8 kB / 0.4977 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.3434, allocations: 0 / 0.4977 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.3434, allocations: 7.953 kB / 0.4978 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008397/0.3442, allocations: 219.7 kB / 0.498 GB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.3443, allocations: 4 kB / 0.498 GB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.3447, allocations: 63.97 kB / 0.498 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.896e-05/0.3448, allocations: 27.98 kB / 0.4981 GB, free: 5.73 MB / 378.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 () * 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.0002479/0.345, allocations: 193.7 kB / 0.4982 GB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.3451, allocations: 55.34 kB / 0.4983 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.3453, allocations: 77.33 kB / 0.4984 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3453, allocations: 8 kB / 0.4984 GB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.3453, allocations: 3.953 kB / 0.4984 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3453, allocations: 7.984 kB / 0.4984 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003022/0.3484, allocations: 2.022 MB / 0.5004 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.3484, allocations: 7.984 kB / 0.5004 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.3492, allocations: 211.7 kB / 0.5006 GB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.3492, allocations: 8 kB / 0.5006 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-05/0.3493, allocations: 27.98 kB / 0.5006 GB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.3493, allocations: 8 kB / 0.5006 GB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.3493, allocations: 7.938 kB / 0.5006 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.3517, allocations: 1.641 MB / 0.5022 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.3518, allocations: 128.5 kB / 0.5023 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.356e-05/0.3519, allocations: 27.94 kB / 0.5024 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.3523, allocations: 59.97 kB / 0.5024 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3524, allocations: 80.8 kB / 0.5025 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/0.3525, allocations: 28 kB / 0.5025 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001577/0.3527, allocations: 181.9 kB / 0.5027 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3527, allocations: 0 / 0.5027 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004837/0.3531, allocations: 156 kB / 0.5029 GB, free: 500 kB / 378.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 () * 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.2157/0.5689, allocations: 3.515 MB / 0.5063 GB, free: 92.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.5707, allocations: 0.7494 MB / 0.507 GB, free: 92.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.5707, allocations: 3.594 kB / 0.507 GB, free: 92.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008544/0.5715, allocations: 461.7 kB / 0.5075 GB, free: 92.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.5722, allocations: 93.83 kB / 0.5076 GB, free: 92.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.5786, allocations: 4.042 MB / 0.5115 GB, free: 90.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.579, allocations: 0.8781 MB / 0.5124 GB, free: 90.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003389/0.5793, allocations: 76.11 kB / 0.5124 GB, free: 90.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.5796, allocations: 198.8 kB / 0.5126 GB, free: 90.18 MB / 378.7 MB Notification: Performance of SimCode: time 1.462e-06/0.5796, allocations: 3.75 kB / 0.5126 GB, free: 90.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.6006, allocations: 10.39 MB / 0.5228 GB, free: 86.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.6008, allocations: 182.3 kB / 0.5229 GB, free: 85.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.694, allocations: 3.938 kB / 0.5229 GB, free: 85.78 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat