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.002355/0.002355, allocations: 189.2 kB / 16.4 MB, free: 5.625 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.238/2.238, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.00117/0.001169, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006225/0.0006224, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1151, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004769/0.1199, allocations: 2.821 MB / 377.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.1222, allocations: 0.9011 MB / 378.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.1225, allocations: 11.94 kB / 378.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.1226, allocations: 63.47 kB / 378.4 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004761/0.1231, allocations: 167.5 kB / 378.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.1237, allocations: 119.8 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006911/0.1244, allocations: 407.8 kB / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003436/0.1247, allocations: 154 kB / 379.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.1251, allocations: 195.2 kB / 379.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003977/0.1255, allocations: 239 kB / 379.7 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.267e-05/0.1256, allocations: 24 kB / 379.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.1257, allocations: 28 kB / 379.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1259, allocations: 87.66 kB / 379.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.126, allocations: 113.5 kB / 379.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000629/0.1266, allocations: 442.9 kB / 380.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1267, allocations: 0 / 380.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1267, allocations: 0 / 380.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.1267, allocations: 4 kB / 380.4 MB, free: 9.57 MB / 282.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.002371/0.1291, allocations: 0.7874 MB / 381.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.1291, allocations: 8.031 kB / 381.2 MB, free: 8.727 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001465/0.1293, allocations: 90.47 kB / 381.3 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.1294, allocations: 63.33 kB / 381.3 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005545/0.13, allocations: 314.1 kB / 381.6 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.1301, allocations: 33 kB / 381.7 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.1302, allocations: 55.89 kB / 381.7 MB, free: 8.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1317, allocations: 466.3 kB / 382.2 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.1318, allocations: 4 kB / 382.2 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.312e-05/0.1319, allocations: 20 kB / 382.2 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.1319, allocations: 12 kB / 382.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.1338, allocations: 491.7 kB / 382.7 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.1376, allocations: 1.386 MB / 384.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.1393, allocations: 0.5566 MB / 384.6 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.187e-05/0.1394, allocations: 12.55 kB / 384.6 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.1394, allocations: 43.11 kB / 384.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 3.417e-06/0.1395, allocations: 0 / 384.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=103): time 0.01373/0.1532, allocations: 3.27 MB / 387.9 MB, free: 1.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.141e-05/0.1533, allocations: 64.41 kB / 388 MB, free: 1.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.1537, allocations: 247 kB / 388.2 MB, free: 1.398 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.265e-05/0.1538, allocations: 41.7 kB / 388.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.154, allocations: 251.6 kB / 388.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.1544, allocations: 354.8 kB / 388.9 MB, free: 0.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.1544, allocations: 12 kB / 388.9 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1546, allocations: 346.8 kB / 389.2 MB, free: 400 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.1557, allocations: 289.8 kB / 389.5 MB, free: 108 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2555/0.4113, allocations: 357.2 kB / 389.9 MB, free: 20.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.4126, allocations: 316.4 kB / 390.2 MB, free: 20.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4127, allocations: 0 / 390.2 MB, free: 20.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002953/0.4156, allocations: 0.7908 MB / 391 MB, free: 20.46 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.4157, allocations: 5.438 kB / 391 MB, free: 20.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.4157, allocations: 1.672 kB / 391 MB, free: 20.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.4158, allocations: 14.5 kB / 391 MB, free: 20.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.4175, allocations: 219.1 kB / 391.2 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.78e-05/0.4176, allocations: 4.281 kB / 391.2 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007619/0.4183, allocations: 60.77 kB / 391.3 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.4184, allocations: 28.48 kB / 391.3 MB, free: 20.45 MB / 282.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.0003584/0.4188, allocations: 195.7 kB / 391.5 MB, free: 20.33 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.419, allocations: 53.91 kB / 391.5 MB, free: 20.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.4192, allocations: 70.05 kB / 391.6 MB, free: 20.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.4192, allocations: 12.81 kB / 391.6 MB, free: 20.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.4192, allocations: 0.875 kB / 391.6 MB, free: 20.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.249e-05/0.4193, allocations: 9.344 kB / 391.6 MB, free: 20.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005473/0.4247, allocations: 2.034 MB / 393.7 MB, free: 19.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/0.4248, allocations: 4.5 kB / 393.7 MB, free: 19.26 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/0.4266, allocations: 209.1 kB / 393.9 MB, free: 19.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.319e-05/0.4266, allocations: 12.94 kB / 393.9 MB, free: 19.24 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.4268, allocations: 24.92 kB / 393.9 MB, free: 19.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.716e-05/0.4268, allocations: 13.81 kB / 393.9 MB, free: 19.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/0.4268, allocations: 9.438 kB / 393.9 MB, free: 19.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004143/0.431, allocations: 1.635 MB / 395.6 MB, free: 18.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.4312, allocations: 122.1 kB / 395.7 MB, free: 18.06 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.4314, allocations: 31.3 kB / 395.7 MB, free: 18.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007277/0.4321, allocations: 57.67 kB / 395.8 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.4323, allocations: 75.47 kB / 395.8 MB, free: 18.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.512e-05/0.4324, allocations: 34.48 kB / 395.9 MB, free: 18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002691/0.4327, allocations: 179.9 kB / 396.1 MB, free: 17.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4327, allocations: 0 / 396.1 MB, free: 17.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000902/0.4336, allocations: 151.1 kB / 396.2 MB, free: 17.87 MB / 282.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.004768/0.4384, allocations: 3.505 MB / 399.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.4412, allocations: 0.7525 MB / 400.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.4413, allocations: 1.312 kB / 400.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.443, allocations: 468.4 kB / 400.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.4443, allocations: 100.8 kB / 401 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.4556, allocations: 4.071 MB / 405.1 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.4562, allocations: 0.881 MB / 406 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006394/0.4569, allocations: 202.1 kB / 406.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of SimCode: time 1.583e-06/0.4569, allocations: 0 / 406.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.675/3.132, allocations: 9.155 MB / 415.3 MB, free: 6.27 MB / 282.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)