Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 96.58 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009476/0.0009477, allocations: 180 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004731/0.0004731, allocations: 16 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003653/0.1162, allocations: 2.818 MB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.1182, allocations: 0.9128 MB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003076/0.1186, allocations: 8 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.1187, allocations: 59.53 kB / 332.2 MB, free: 184 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004211/0.1192, allocations: 167.5 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.1197, allocations: 119.8 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004741/0.1201, allocations: 399.8 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.1204, allocations: 154 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.1207, allocations: 199.3 kB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.121, allocations: 235 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.576e-05/0.1211, allocations: 28 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.394e-05/0.1211, allocations: 24 kB / 333.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.603e-05/0.1212, allocations: 95.61 kB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1213, allocations: 113.5 kB / 333.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.1217, allocations: 439 kB / 334.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.1218, allocations: 0 / 334.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1218, allocations: 0 / 334.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1218, allocations: 0 / 334.1 MB, free: 14.24 MB / 286.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.001487/0.1233, allocations: 0.7991 MB / 334.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1233, allocations: 8.031 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1234, allocations: 86.52 kB / 335 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.222e-05/0.1235, allocations: 55.34 kB / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.1239, allocations: 318.1 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.531e-05/0.124, allocations: 36.98 kB / 335.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.1241, allocations: 51.91 kB / 335.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009007/0.125, allocations: 466.4 kB / 335.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.125, allocations: 0 / 335.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.1251, allocations: 20 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.1251, allocations: 12 kB / 336 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1261, allocations: 487.7 kB / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.1284, allocations: 1.398 MB / 337.8 MB, free: 10.37 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008841/0.1293, allocations: 0.5518 MB / 338.4 MB, free: 9.809 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.95e-05/0.1293, allocations: 8.562 kB / 338.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1294, allocations: 47.11 kB / 338.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 1.844e-06/0.1294, allocations: 0 / 338.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=103): time 0.007287/0.1367, allocations: 3.282 MB / 341.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.1367, allocations: 60.41 kB / 341.8 MB, free: 6.309 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.137, allocations: 255 kB / 342 MB, free: 6.051 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.143e-05/0.1371, allocations: 41.7 kB / 342.1 MB, free: 6.004 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.1372, allocations: 197.2 kB / 342.3 MB, free: 5.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.1375, allocations: 350.8 kB / 342.6 MB, free: 5.457 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.1375, allocations: 20 kB / 342.6 MB, free: 5.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1377, allocations: 358.8 kB / 343 MB, free: 5.078 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005756/0.1382, allocations: 289.8 kB / 343.3 MB, free: 4.793 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005993/0.1388, allocations: 357.4 kB / 343.6 MB, free: 4.438 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.1395, allocations: 314.9 kB / 343.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1395, allocations: 0 / 343.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001428/0.1409, allocations: 0.8132 MB / 344.7 MB, free: 3.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1409, allocations: 7.938 kB / 344.8 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.141, allocations: 0 / 344.8 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.141, allocations: 7.953 kB / 344.8 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/0.1418, allocations: 223.7 kB / 345 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.1418, allocations: 4 kB / 345 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/0.1422, allocations: 59.97 kB / 345 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.1422, allocations: 27.98 kB / 345.1 MB, free: 2.984 MB / 286.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 () * 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.0002511/0.1425, allocations: 193.7 kB / 345.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.056e-05/0.1426, allocations: 47.44 kB / 345.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.1427, allocations: 81.38 kB / 345.4 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1427, allocations: 15.94 kB / 345.4 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.1428, allocations: 3.953 kB / 345.4 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.1428, allocations: 3.984 kB / 345.4 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.1459, allocations: 2.021 MB / 347.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.1459, allocations: 4.594 kB / 347.4 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.1467, allocations: 215.7 kB / 347.6 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.107e-05/0.1468, allocations: 8 kB / 347.6 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.1468, allocations: 27.98 kB / 347.7 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-05/0.1468, allocations: 11.94 kB / 347.7 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1469, allocations: 4 kB / 347.7 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.1493, allocations: 1.642 MB / 349.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.1495, allocations: 120.6 kB / 349.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.202e-05/0.1496, allocations: 31.94 kB / 349.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000391/0.15, allocations: 59.97 kB / 349.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.1501, allocations: 76.8 kB / 349.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.1502, allocations: 32 kB / 349.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001829/0.1503, allocations: 178 kB / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1504, allocations: 0 / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005418/0.1509, allocations: 156 kB / 350 MB, free: 13.74 MB / 302.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 () * 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.003127/0.154, allocations: 3.517 MB / 353.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.1555, allocations: 0.7504 MB / 354.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.1556, allocations: 0 / 354.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007565/0.1563, allocations: 462.6 kB / 354.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.157, allocations: 96.48 kB / 354.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005841/0.1629, allocations: 4.041 MB / 358.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.1633, allocations: 0.8813 MB / 359.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003231/0.1637, allocations: 76.97 kB / 359.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.164, allocations: 199.4 kB / 360 MB, free: 3.441 MB / 302.1 MB Notification: Performance of SimCode: time 7.72e-07/0.164, allocations: 0 / 360 MB, free: 3.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.1875, allocations: 10.39 MB / 370.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.1878, allocations: 186.1 kB / 370.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.147, allocations: 0 / 370.6 MB, free: 8.797 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat