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.002339/0.002338, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.118/2.118, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001158/0.001157, allocations: 95.22 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003979/0.0003979, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3441, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4757, allocations: 77.97 MB / 452.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.476, allocations: 71.95 kB / 452.7 MB, free: 2.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04196/0.518, allocations: 9.295 MB / 462 MB, free: 9.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5181, allocations: 0 / 462 MB, free: 9.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.071e-05/0.5181, allocations: 8 kB / 462 MB, free: 9.391 MB / 346.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.002383/0.5205, allocations: 0.7604 MB / 462.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.5206, allocations: 8.031 kB / 462.7 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/0.5208, allocations: 90.45 kB / 462.8 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.521, allocations: 55.34 kB / 462.9 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005885/0.5216, allocations: 306.2 kB / 463.2 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.5217, allocations: 33 kB / 463.2 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.5218, allocations: 55.94 kB / 463.3 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.5234, allocations: 462.4 kB / 463.7 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.5234, allocations: 3.906 kB / 463.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.867e-05/0.5235, allocations: 20 kB / 463.7 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.5236, allocations: 12 kB / 463.7 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.5255, allocations: 491.7 kB / 464.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0039/0.5294, allocations: 1.386 MB / 465.6 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.5311, allocations: 0.5721 MB / 466.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.939e-05/0.5312, allocations: 16.53 kB / 466.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.5312, allocations: 39.12 kB / 466.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.996e-06/0.5313, allocations: 0 / 466.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=103): time 0.01351/0.5448, allocations: 3.28 MB / 469.5 MB, free: 1.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.5449, allocations: 64.41 kB / 469.6 MB, free: 1.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.5452, allocations: 226.1 kB / 469.8 MB, free: 1.277 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.333e-05/0.5453, allocations: 41.7 kB / 469.8 MB, free: 1.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.5455, allocations: 255.7 kB / 470.1 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003736/0.5459, allocations: 342.9 kB / 470.4 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.546, allocations: 20 kB / 470.4 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.5462, allocations: 342.8 kB / 470.8 MB, free: 280 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.5473, allocations: 285.9 kB / 471.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.5485, allocations: 361.3 kB / 471.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.5496, allocations: 314.9 kB / 471.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5496, allocations: 0 / 471.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002613/0.5522, allocations: 0.7939 MB / 472.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.5523, allocations: 8 kB / 472.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.5523, allocations: 3.938 kB / 472.5 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.5523, allocations: 11.95 kB / 472.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/0.5539, allocations: 215.8 kB / 472.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.5539, allocations: 4 kB / 472.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006696/0.5546, allocations: 59.97 kB / 472.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.403e-05/0.5547, allocations: 27.98 kB / 472.8 MB, free: 14.2 MB / 362.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.0003739/0.5551, allocations: 196 kB / 473 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.5552, allocations: 55.34 kB / 473.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002195/0.5555, allocations: 73.39 kB / 473.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.5555, allocations: 12 kB / 473.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.5555, allocations: 3.953 kB / 473.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.5555, allocations: 7.984 kB / 473.2 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.5609, allocations: 2.022 MB / 475.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.5609, allocations: 7.984 kB / 475.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.5625, allocations: 207.7 kB / 475.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.061e-05/0.5626, allocations: 12 kB / 475.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-05/0.5626, allocations: 23.98 kB / 475.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.736e-05/0.5627, allocations: 12.06 kB / 475.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/0.5627, allocations: 12 kB / 475.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004185/0.5669, allocations: 1.634 MB / 477.1 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.5671, allocations: 128.5 kB / 477.2 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.5672, allocations: 27.94 kB / 477.3 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007122/0.568, allocations: 59.97 kB / 477.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.5682, allocations: 80.8 kB / 477.4 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-05/0.5683, allocations: 28 kB / 477.4 MB, free: 9.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002628/0.5685, allocations: 182 kB / 477.6 MB, free: 9.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5685, allocations: 0 / 477.6 MB, free: 9.105 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007558/0.5693, allocations: 156 kB / 477.8 MB, free: 8.953 MB / 362.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.00515/0.5745, allocations: 3.517 MB / 481.3 MB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.5771, allocations: 0.7543 MB / 482 MB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5771, allocations: 0 / 482 MB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.5785, allocations: 462.7 kB / 482.5 MB, free: 4.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00097/0.5795, allocations: 96.34 kB / 482.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009717/0.5892, allocations: 4.066 MB / 486.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.5899, allocations: 0.8774 MB / 487.5 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/0.5905, allocations: 211.3 kB / 487.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.376e-06/0.5905, allocations: 0 / 487.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.542/3.132, allocations: 9.128 MB / 496.8 MB, free: 5.531 MB / 378.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)