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.001491/0.001491, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 89.73 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.365e-05/2.363e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3702, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.4965, allocations: 77.21 MB / 439.6 MB, free: 9.004 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.4968, allocations: 77.33 kB / 439.7 MB, free: 8.93 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04149/0.5383, allocations: 9.209 MB / 448.9 MB, free: 15.78 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5384, allocations: 5.531 kB / 448.9 MB, free: 15.77 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.222e-05/0.5384, allocations: 12 kB / 448.9 MB, free: 15.76 MB / 347.1 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.001942/0.5404, allocations: 0.7118 MB / 449.6 MB, free: 15 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.5405, allocations: 16.02 kB / 449.7 MB, free: 14.99 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.5406, allocations: 55.34 kB / 449.7 MB, free: 14.93 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/0.5412, allocations: 318 kB / 450 MB, free: 14.58 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.5412, allocations: 16 kB / 450 MB, free: 14.57 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.5413, allocations: 28 kB / 450.1 MB, free: 14.54 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001069/0.5424, allocations: 350.5 kB / 450.4 MB, free: 14.2 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009356/0.5434, allocations: 335.9 kB / 450.7 MB, free: 13.86 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.5434, allocations: 4 kB / 450.7 MB, free: 13.86 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/0.5435, allocations: 0 / 450.7 MB, free: 13.86 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.5435, allocations: 12 kB / 450.8 MB, free: 13.84 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.5471, allocations: 1.298 MB / 452.1 MB, free: 12.5 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.5483, allocations: 472.5 kB / 452.5 MB, free: 12.03 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009221/0.5492, allocations: 303 kB / 452.8 MB, free: 11.73 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.5493, allocations: 28.48 kB / 452.8 MB, free: 11.7 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.5494, allocations: 45.45 kB / 452.9 MB, free: 11.65 MB / 347.1 MB Notification: Performance of pre-optimization done (n=67): time 3.948e-06/0.5494, allocations: 3.938 kB / 452.9 MB, free: 11.64 MB / 347.1 MB Notification: Performance of matching and sorting (n=103): time 0.006224/0.5556, allocations: 2.205 MB / 455.1 MB, free: 9.352 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.5557, allocations: 68.67 kB / 455.2 MB, free: 9.273 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.556, allocations: 202.3 kB / 455.4 MB, free: 9.066 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.5561, allocations: 29.7 kB / 455.4 MB, free: 9.031 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.5563, allocations: 251.5 kB / 455.6 MB, free: 8.781 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/0.5566, allocations: 331 kB / 456 MB, free: 8.453 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.5567, allocations: 0 / 456 MB, free: 8.453 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.5569, allocations: 350.8 kB / 456.3 MB, free: 8.102 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.5575, allocations: 210.6 kB / 456.5 MB, free: 7.898 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006718/0.5582, allocations: 274.3 kB / 456.8 MB, free: 7.621 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.5588, allocations: 242.3 kB / 457 MB, free: 7.391 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.5588, allocations: 4 kB / 457 MB, free: 7.387 MB / 347.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001577/0.5604, allocations: 0.606 MB / 457.6 MB, free: 6.773 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.5605, allocations: 14.48 kB / 457.6 MB, free: 6.762 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5605, allocations: 0 / 457.6 MB, free: 6.762 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.5605, allocations: 4 kB / 457.6 MB, free: 6.758 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.5622, allocations: 219.8 kB / 457.9 MB, free: 6.543 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.5622, allocations: 4 kB / 457.9 MB, free: 6.539 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006777/0.5629, allocations: 43.92 kB / 457.9 MB, free: 6.496 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.941e-05/0.563, allocations: 31.98 kB / 457.9 MB, free: 6.465 MB / 347.1 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.0001997/0.5632, allocations: 116.8 kB / 458 MB, free: 6.344 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001642/0.5648, allocations: 0.5903 MB / 458.6 MB, free: 5.746 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.565, allocations: 55.34 kB / 458.7 MB, free: 5.691 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.5652, allocations: 62.3 kB / 458.7 MB, free: 5.629 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.5653, allocations: 12 kB / 458.8 MB, free: 5.617 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.5653, allocations: 3.953 kB / 458.8 MB, free: 5.613 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.5653, allocations: 7.984 kB / 458.8 MB, free: 5.605 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004097/0.5694, allocations: 1.737 MB / 460.5 MB, free: 3.766 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.5695, allocations: 4 kB / 460.5 MB, free: 3.762 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/0.5712, allocations: 207.7 kB / 460.7 MB, free: 3.559 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-05/0.5713, allocations: 12 kB / 460.7 MB, free: 3.547 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-05/0.5714, allocations: 16.23 kB / 460.7 MB, free: 3.531 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.76e-05/0.5714, allocations: 15.94 kB / 460.8 MB, free: 3.516 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.5714, allocations: 10.61 kB / 460.8 MB, free: 3.508 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.5741, allocations: 1.387 MB / 462.2 MB, free: 1.934 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.5743, allocations: 120.5 kB / 462.3 MB, free: 1.797 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5745, allocations: 12.05 kB / 462.3 MB, free: 1.785 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007277/0.5752, allocations: 55.86 kB / 462.3 MB, free: 1.73 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.5754, allocations: 64.69 kB / 462.4 MB, free: 1.668 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-05/0.5755, allocations: 39.89 kB / 462.4 MB, free: 1.629 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002131/0.5757, allocations: 158 kB / 462.6 MB, free: 1.473 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5757, allocations: 0 / 462.6 MB, free: 1.473 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007463/0.5765, allocations: 120 kB / 462.7 MB, free: 1.355 MB / 347.1 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.003598/0.5801, allocations: 3.241 MB / 466 MB, free: 13.96 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.5817, allocations: 0.5888 MB / 466.5 MB, free: 13.37 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.5817, allocations: 0 / 466.5 MB, free: 13.37 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009493/0.5827, allocations: 378.8 kB / 466.9 MB, free: 13 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009812/0.5837, allocations: 80.41 kB / 467 MB, free: 12.92 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003766/0.5875, allocations: 1.325 MB / 468.3 MB, free: 11.49 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.5881, allocations: 0.8806 MB / 469.2 MB, free: 10.58 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005722/0.5887, allocations: 203.3 kB / 469.4 MB, free: 10.38 MB / 363.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5887, allocations: 0 / 469.4 MB, free: 10.38 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/3.404, allocations: 9.209 MB / 478.6 MB, free: 1.188 MB / 363.1 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)