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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009823, allocations: 93.5 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002777, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2998, allocations: 50.41 MB / 401.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.4098, allocations: 79.1 MB / 480.7 MB, free: 1.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4101, allocations: 67.97 kB / 480.7 MB, free: 1.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02587/0.436, allocations: 9.553 MB / 490.3 MB, free: 7.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.436, allocations: 0 / 490.3 MB, free: 7.594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.702e-05/0.4361, allocations: 20 kB / 490.3 MB, free: 7.574 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.001359/0.4374, allocations: 0.7566 MB / 491.1 MB, free: 6.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4375, allocations: 8.031 kB / 491.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.4376, allocations: 86.47 kB / 491.2 MB, free: 6.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.904e-05/0.4377, allocations: 59.34 kB / 491.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.4381, allocations: 310.1 kB / 491.5 MB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.4382, allocations: 37 kB / 491.6 MB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.4382, allocations: 51.98 kB / 491.6 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000892/0.4391, allocations: 466.3 kB / 492.1 MB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.4392, allocations: 3.906 kB / 492.1 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.4392, allocations: 20 kB / 492.1 MB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.4392, allocations: 16 kB / 492.1 MB, free: 5.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.4403, allocations: 495.6 kB / 492.6 MB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002342/0.4426, allocations: 1.386 MB / 494 MB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009497/0.4436, allocations: 0.5522 MB / 494.5 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.4437, allocations: 12.55 kB / 494.5 MB, free: 3.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.4437, allocations: 43.11 kB / 494.6 MB, free: 3.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.404e-06/0.4437, allocations: 0 / 494.6 MB, free: 3.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=103): time 0.007178/0.4509, allocations: 3.273 MB / 497.9 MB, free: 15.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.451, allocations: 64.41 kB / 497.9 MB, free: 15.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.4512, allocations: 222.1 kB / 498.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.4513, allocations: 41.7 kB / 498.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.4514, allocations: 197.2 kB / 498.4 MB, free: 15.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.4517, allocations: 342.8 kB / 498.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.4518, allocations: 23.94 kB / 498.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.452, allocations: 362.7 kB / 499.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005921/0.4526, allocations: 289.8 kB / 499.4 MB, free: 14.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006678/0.4532, allocations: 365.4 kB / 499.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.4539, allocations: 311 kB / 0.4883 GB, free: 13.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4539, allocations: 0 / 0.4883 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001473/0.4554, allocations: 0.8132 MB / 0.4891 GB, free: 12.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.4554, allocations: 4 kB / 0.4891 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4554, allocations: 0 / 0.4891 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.4554, allocations: 4 kB / 0.4891 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008431/0.4563, allocations: 219.7 kB / 0.4893 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.4563, allocations: 4 kB / 0.4893 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.4567, allocations: 63.95 kB / 0.4894 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.4567, allocations: 24 kB / 0.4894 GB, free: 12.41 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.000274/0.457, allocations: 205.6 kB / 0.4896 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.894e-05/0.4571, allocations: 59.33 kB / 0.4897 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.4573, allocations: 73.39 kB / 0.4897 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4573, allocations: 12 kB / 0.4897 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.4573, allocations: 0 / 0.4897 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4574, allocations: 3.984 kB / 0.4897 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.4605, allocations: 2.025 MB / 0.4917 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4605, allocations: 4 kB / 0.4917 GB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008327/0.4613, allocations: 220.1 kB / 0.4919 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.4613, allocations: 12 kB / 0.4919 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.4614, allocations: 27.98 kB / 0.492 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4614, allocations: 8 kB / 0.492 GB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.4614, allocations: 7.938 kB / 0.492 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.4639, allocations: 1.637 MB / 0.4936 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.464, allocations: 124.5 kB / 0.4937 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.23e-05/0.4641, allocations: 28 kB / 0.4937 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.4645, allocations: 64.08 kB / 0.4938 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.4646, allocations: 76.81 kB / 0.4939 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.4647, allocations: 31.98 kB / 0.4939 GB, free: 7.484 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.4648, allocations: 178 kB / 0.4941 GB, free: 7.312 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4648, allocations: 0 / 0.4941 GB, free: 7.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000507/0.4653, allocations: 152 kB / 0.4942 GB, free: 7.164 MB / 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.003243/0.4686, allocations: 3.524 MB / 0.4977 GB, free: 3.477 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.4701, allocations: 0.7504 MB / 0.4984 GB, free: 2.727 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4701, allocations: 4.125 kB / 0.4984 GB, free: 2.723 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007652/0.4709, allocations: 466.5 kB / 0.4988 GB, free: 2.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.4715, allocations: 87.77 kB / 0.4989 GB, free: 2.184 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2164/0.6879, allocations: 4.027 MB / 0.5029 GB, free: 99.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.6885, allocations: 0.8795 MB / 0.5037 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004272/0.6889, allocations: 79.94 kB / 0.5038 GB, free: 98.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.6893, allocations: 198.3 kB / 0.504 GB, free: 98.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6893, allocations: 0.625 kB / 0.504 GB, free: 98.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.714, allocations: 10.41 MB / 0.5141 GB, free: 96.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/0.7142, allocations: 182.6 kB / 0.5143 GB, free: 95.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.934, allocations: 0 / 0.5143 GB, free: 95.88 MB / 378.7 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