Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009484/0.0009484, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007675/0.0007676, allocations: 91.61 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002254/0.0002255, allocations: 11.98 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1907, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.002254/0.193, allocations: 3.038 MB / 411.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.194, allocations: 0.8846 MB / 412 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.1942, allocations: 11.94 kB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1943, allocations: 58.27 kB / 412.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.1945, allocations: 126 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1948, allocations: 122.7 kB / 412.4 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.1952, allocations: 0.5372 MB / 412.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1954, allocations: 162.4 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1956, allocations: 203.2 kB / 413.2 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.1958, allocations: 231 kB / 413.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.1958, allocations: 31.94 kB / 413.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.438e-05/0.1959, allocations: 28 kB / 413.5 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.468e-05/0.196, allocations: 91.66 kB / 413.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.1961, allocations: 256.6 kB / 413.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002492/0.1964, allocations: 432 kB / 414.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1964, allocations: 0 / 414.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1964, allocations: 0 / 414.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1964, allocations: 4 kB / 414.3 MB, free: 21.51 MB / 298.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.001185/0.1976, allocations: 0.7953 MB / 415.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1976, allocations: 8.031 kB / 415.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.52e-05/0.1977, allocations: 86.7 kB / 415.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.1979, allocations: 72.27 kB / 415.3 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.1982, allocations: 335.1 kB / 415.6 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.1982, allocations: 33.38 kB / 415.6 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.2e-05/0.1983, allocations: 48.38 kB / 415.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.1991, allocations: 470.5 kB / 416.1 MB, free: 19.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.1991, allocations: 7.844 kB / 416.1 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.1992, allocations: 20 kB / 416.2 MB, free: 19.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.1992, allocations: 12 kB / 416.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000884/0.2001, allocations: 495.7 kB / 416.6 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2018, allocations: 1.386 MB / 418 MB, free: 17.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007487/0.2026, allocations: 0.5598 MB / 418.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006399/0.2033, allocations: 383.8 kB / 419 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.2033, allocations: 20.53 kB / 419 MB, free: 16.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.2033, allocations: 43.12 kB / 419 MB, free: 16.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.195e-06/0.2033, allocations: 0 / 419 MB, free: 16.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.006336/0.2097, allocations: 3.294 MB / 422.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.2097, allocations: 68.34 kB / 422.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2099, allocations: 247 kB / 422.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.21, allocations: 41.7 kB / 422.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.2101, allocations: 201.2 kB / 422.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.2102, allocations: 346.9 kB / 423.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.2102, allocations: 20 kB / 423.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.467e-05/0.2103, allocations: 362.7 kB / 423.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004945/0.2108, allocations: 289.8 kB / 423.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.2113, allocations: 361.4 kB / 424.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.2124, allocations: 0.6585 MB / 424.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2124, allocations: 4 kB / 424.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001233/0.2136, allocations: 0.8015 MB / 425.7 MB, free: 9.781 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2137, allocations: 12.06 kB / 425.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2137, allocations: 7.922 kB / 425.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.2137, allocations: 4 kB / 425.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006929/0.2144, allocations: 219.7 kB / 425.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.2144, allocations: 4 kB / 425.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.2147, allocations: 59.97 kB / 426 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/0.2148, allocations: 35.97 kB / 426 MB, free: 9.445 MB / 298.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.0001811/0.215, allocations: 189.7 kB / 426.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.2151, allocations: 59.34 kB / 426.3 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.2152, allocations: 81.27 kB / 426.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2152, allocations: 12 kB / 426.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2152, allocations: 0 / 426.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.2152, allocations: 3.984 kB / 426.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/0.2176, allocations: 2.037 MB / 428.4 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.2176, allocations: 4 kB / 428.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007122/0.2183, allocations: 212.1 kB / 428.6 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.2184, allocations: 16 kB / 428.6 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.2184, allocations: 23.94 kB / 428.6 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.2184, allocations: 15.92 kB / 428.7 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2184, allocations: 8 kB / 428.7 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.2202, allocations: 1.419 MB / 430.1 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.159e-05/0.2203, allocations: 124.5 kB / 430.2 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.2204, allocations: 28 kB / 430.2 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.2208, allocations: 63.95 kB / 430.3 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.2209, allocations: 76.78 kB / 430.4 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.2209, allocations: 28 kB / 430.4 MB, free: 4.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001095/0.221, allocations: 178 kB / 430.6 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.221, allocations: 4 kB / 430.6 MB, free: 4.668 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004888/0.2215, allocations: 152 kB / 430.7 MB, free: 4.52 MB / 298.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.001951/0.2235, allocations: 1.987 MB / 432.7 MB, free: 2.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.2247, allocations: 0.7582 MB / 433.5 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2247, allocations: 0 / 433.5 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006291/0.2254, allocations: 462.7 kB / 433.9 MB, free: 1.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.2262, allocations: 112.7 kB / 434 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/0.2314, allocations: 3.796 MB / 437.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.2318, allocations: 0.8687 MB / 438.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.2322, allocations: 199.4 kB / 438.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of SimCode: time 6.32e-07/0.2322, allocations: 0 / 438.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.841/3.074, allocations: 8.01 MB / 446.9 MB, free: 4.066 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1)