Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_cpp_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.001571/0.001571, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.218/2.218, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.301e-05/5.304e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1316, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4718/0.6034, allocations: 77.87 MB / 447 MB, free: 14.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.6038, allocations: 72.2 kB / 447.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04365/0.6474, allocations: 9.292 MB / 456.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6475, allocations: 3.938 kB / 456.4 MB, free: 7.109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.368e-05/0.6475, allocations: 8 kB / 456.4 MB, free: 7.102 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.002147/0.6497, allocations: 0.7231 MB / 457.1 MB, free: 6.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.6498, allocations: 8.031 kB / 457.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001925/0.65, allocations: 84.22 kB / 457.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.6502, allocations: 59.33 kB / 457.3 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006133/0.6508, allocations: 312.3 kB / 457.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.777e-05/0.6509, allocations: 40.19 kB / 457.6 MB, free: 5.895 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.651, allocations: 43.06 kB / 457.7 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.6521, allocations: 400.6 kB / 458.1 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.6522, allocations: 7.906 kB / 458.1 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.6522, allocations: 19.38 kB / 458.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.6523, allocations: 8 kB / 458.1 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.6533, allocations: 370.8 kB / 458.5 MB, free: 5.324 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.6572, allocations: 1.391 MB / 459.9 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.6586, allocations: 0.4936 MB / 460.4 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.6597, allocations: 327 kB / 460.7 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.152e-05/0.6598, allocations: 12.56 kB / 460.7 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.6598, allocations: 47.44 kB / 460.7 MB, free: 3.309 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 3.827e-06/0.6598, allocations: 3.938 kB / 460.7 MB, free: 3.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=103): time 0.01129/0.6711, allocations: 2.755 MB / 463.5 MB, free: 472 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.6713, allocations: 60.41 kB / 463.6 MB, free: 400 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.6716, allocations: 219.5 kB / 463.8 MB, free: 176 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.6718, allocations: 45.7 kB / 463.8 MB, free: 124 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.6719, allocations: 243.7 kB / 464 MB, free: 15.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003891/0.6724, allocations: 354.8 kB / 464.4 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.6724, allocations: 16 kB / 464.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.6726, allocations: 346.8 kB / 464.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006756/0.6733, allocations: 226 kB / 465 MB, free: 14.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007426/0.6741, allocations: 293.5 kB / 465.3 MB, free: 14.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.6748, allocations: 256.8 kB / 465.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.6749, allocations: 4 kB / 465.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001777/0.6767, allocations: 0.6729 MB / 466.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.6767, allocations: 8 kB / 466.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.6767, allocations: 0 / 466.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.187e-05/0.6768, allocations: 7.953 kB / 466.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.6784, allocations: 215.8 kB / 466.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.729e-05/0.6786, allocations: 7.938 kB / 466.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.6793, allocations: 63.95 kB / 466.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.6794, allocations: 28 kB / 466.5 MB, free: 13.39 MB / 346.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.0002306/0.6797, allocations: 148.9 kB / 466.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.6798, allocations: 55.34 kB / 466.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.6801, allocations: 73.39 kB / 466.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.6801, allocations: 15.89 kB / 466.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6802, allocations: 4 kB / 466.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.6802, allocations: 11.95 kB / 466.8 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004695/0.6849, allocations: 1.897 MB / 468.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/0.685, allocations: 8 kB / 468.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.6867, allocations: 211.7 kB / 468.9 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.679e-05/0.6868, allocations: 8 kB / 468.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/0.687, allocations: 28 kB / 469 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.11e-05/0.687, allocations: 15.92 kB / 469 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.478e-05/0.687, allocations: 11.95 kB / 469 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.6901, allocations: 1.453 MB / 470.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.6903, allocations: 128.4 kB / 470.6 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.6905, allocations: 28.02 kB / 470.6 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007697/0.6913, allocations: 59.97 kB / 470.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.6915, allocations: 72.58 kB / 470.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.6916, allocations: 35.98 kB / 470.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002737/0.6919, allocations: 175.1 kB / 470.9 MB, free: 8.641 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6919, allocations: 0 / 470.9 MB, free: 8.641 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000796/0.6927, allocations: 155.9 kB / 471.1 MB, free: 8.488 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.004017/0.6967, allocations: 3.334 MB / 474.4 MB, free: 4.992 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.6986, allocations: 0.6279 MB / 475 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.6987, allocations: 4 kB / 475 MB, free: 4.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.6998, allocations: 396.6 kB / 475.4 MB, free: 3.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.7009, allocations: 94.59 kB / 475.5 MB, free: 3.879 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.7053, allocations: 1.409 MB / 476.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.7059, allocations: 0.8848 MB / 477.8 MB, free: 1.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000656/0.7066, allocations: 203.4 kB / 478 MB, free: 1.258 MB / 346.7 MB Notification: Performance of SimCode: time 1.593e-06/0.7066, allocations: 0 / 478 MB, free: 1.258 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.694/3.401, allocations: 9.312 MB / 487.3 MB, free: 7.914 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1)