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.0009271/0.0009272, allocations: 173.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.212/1.212, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007561/0.0007561, allocations: 88.98 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003161, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1857, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.002777/0.1885, allocations: 3.008 MB / 378.2 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.19, allocations: 0.8761 MB / 379.1 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.1904, allocations: 11.44 kB / 379.1 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.1906, allocations: 56.02 kB / 379.1 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003568/0.1909, allocations: 123 kB / 379.2 MB, free: 42.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.1914, allocations: 121 kB / 379.4 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005981/0.192, allocations: 0.5526 MB / 379.9 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.1923, allocations: 158.3 kB / 380.1 MB, free: 41.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003379/0.1926, allocations: 202.3 kB / 380.3 MB, free: 41.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.193, allocations: 231.4 kB / 380.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.67e-05/0.1931, allocations: 26.38 kB / 380.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1932, allocations: 27.91 kB / 380.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.506e-05/0.1933, allocations: 94.19 kB / 380.6 MB, free: 41.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002407/0.1935, allocations: 258.5 kB / 380.9 MB, free: 41.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.1938, allocations: 427.9 kB / 381.3 MB, free: 40.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1939, allocations: 1.094 kB / 381.3 MB, free: 40.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1939, allocations: 3.938 kB / 381.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.1939, allocations: 0 / 381.3 MB, free: 40.8 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.001409/0.1953, allocations: 0.7979 MB / 382.1 MB, free: 40.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1953, allocations: 9.094 kB / 382.1 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.995e-05/0.1955, allocations: 85.8 kB / 382.2 MB, free: 40.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.1956, allocations: 55.72 kB / 382.3 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.1959, allocations: 322.3 kB / 382.6 MB, free: 39.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.1959, allocations: 35.72 kB / 382.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-05/0.196, allocations: 51.41 kB / 382.7 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008749/0.1969, allocations: 468.3 kB / 383.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.1969, allocations: 2.469 kB / 383.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.197, allocations: 23.41 kB / 383.1 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.197, allocations: 15.44 kB / 383.2 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009909/0.198, allocations: 497.5 kB / 383.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.2001, allocations: 1.399 MB / 385 MB, free: 38.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008838/0.201, allocations: 0.5591 MB / 385.6 MB, free: 37.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007196/0.2017, allocations: 389 kB / 386 MB, free: 37.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.2018, allocations: 16.53 kB / 386 MB, free: 37.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.2018, allocations: 47.06 kB / 386 MB, free: 37.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.144e-06/0.2018, allocations: 4 kB / 386 MB, free: 37.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.006454/0.2082, allocations: 3.28 MB / 389.3 MB, free: 34.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.2083, allocations: 64.41 kB / 389.4 MB, free: 34.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.2085, allocations: 243 kB / 389.6 MB, free: 33.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.2085, allocations: 45.7 kB / 389.7 MB, free: 33.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.2086, allocations: 201.2 kB / 389.9 MB, free: 33.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.2088, allocations: 350.8 kB / 390.2 MB, free: 33.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.2088, allocations: 20 kB / 390.2 MB, free: 33.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.2089, allocations: 366.7 kB / 390.6 MB, free: 32.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004986/0.2094, allocations: 289.8 kB / 390.9 MB, free: 32.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005277/0.2099, allocations: 361.4 kB / 391.2 MB, free: 32.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.211, allocations: 0.6508 MB / 391.9 MB, free: 31.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.211, allocations: 0 / 391.9 MB, free: 31.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001244/0.2122, allocations: 0.8132 MB / 392.7 MB, free: 30.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2122, allocations: 8 kB / 392.7 MB, free: 30.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2123, allocations: 11.86 kB / 392.7 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2123, allocations: 4 kB / 392.7 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.213, allocations: 219.8 kB / 392.9 MB, free: 30.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.213, allocations: 4 kB / 392.9 MB, free: 30.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/0.2134, allocations: 51.97 kB / 393 MB, free: 30.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.2134, allocations: 35.98 kB / 393 MB, free: 30.51 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.0001771/0.2136, allocations: 189.7 kB / 393.2 MB, free: 30.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/0.2137, allocations: 51.44 kB / 393.3 MB, free: 30.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.2138, allocations: 85.27 kB / 393.3 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.2139, allocations: 8 kB / 393.3 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.2139, allocations: 4 kB / 393.3 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2139, allocations: 3.984 kB / 393.4 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/0.2164, allocations: 2.037 MB / 395.4 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.2164, allocations: 4 kB / 395.4 MB, free: 28.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007119/0.2171, allocations: 216.3 kB / 395.6 MB, free: 27.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.2171, allocations: 8 kB / 395.6 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.2172, allocations: 27.94 kB / 395.6 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.2172, allocations: 15.92 kB / 395.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2172, allocations: 4 kB / 395.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.219, allocations: 1.423 MB / 397.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-05/0.2191, allocations: 120.5 kB / 397.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.54e-05/0.2192, allocations: 28 kB / 397.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/0.2196, allocations: 64.08 kB / 397.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2197, allocations: 76.78 kB / 397.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.2198, allocations: 36 kB / 397.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001116/0.2199, allocations: 178 kB / 397.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2199, allocations: 0 / 397.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004419/0.2203, allocations: 152 kB / 397.7 MB, free: 25.59 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.001987/0.2223, allocations: 1.987 MB / 399.7 MB, free: 23.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.2235, allocations: 0.7543 MB / 400.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2236, allocations: 0 / 400.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.2242, allocations: 458.7 kB / 400.9 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008135/0.225, allocations: 120.7 kB / 401 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/0.2297, allocations: 3.795 MB / 404.8 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.2299, allocations: 0.8687 MB / 405.7 MB, free: 17.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.2302, allocations: 199.4 kB / 405.9 MB, free: 17.19 MB / 298.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2303, allocations: 0 / 405.9 MB, free: 17.19 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/3.05, allocations: 7.998 MB / 413.9 MB, free: 9.145 MB / 298.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)