Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",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.001194/0.001194, allocations: 97.95 kB / 16.95 MB, free: 6.453 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.001504/0.001504, allocations: 185.7 kB / 17.84 MB, free: 6.004 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.616/1.616, 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.0008273/0.0008278, allocations: 15.44 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1207, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003004/0.1238, allocations: 2.175 MB / 330.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1249, allocations: 358.8 kB / 331 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.1251, allocations: 11.94 kB / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.1253, allocations: 27.77 kB / 331 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.1256, allocations: 91.3 kB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.126, allocations: 59.88 kB / 331.2 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.1264, allocations: 354.4 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1266, allocations: 85.62 kB / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1269, allocations: 123.5 kB / 331.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.1271, allocations: 139.4 kB / 331.8 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.1272, allocations: 16 kB / 331.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.088e-05/0.1272, allocations: 16 kB / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.145e-05/0.1273, allocations: 51.81 kB / 331.9 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.057e-05/0.1274, allocations: 85.52 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.1276, allocations: 267.5 kB / 332.3 MB, free: 152 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1277, allocations: 4 kB / 332.3 MB, free: 148 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1277, allocations: 0 / 332.3 MB, free: 148 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1277, allocations: 0 / 332.3 MB, free: 148 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001082/0.1288, allocations: 0.5926 MB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.1288, allocations: 12.03 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.1289, allocations: 62.53 kB / 332.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.129, allocations: 39.53 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.1294, allocations: 258.4 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.363e-05/0.1295, allocations: 28.28 kB / 333.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.1296, allocations: 31.91 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.1302, allocations: 276.8 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.1302, allocations: 0 / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.1302, allocations: 16 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1302, allocations: 8 kB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.1309, allocations: 282.1 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.1323, allocations: 0.7991 MB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.1329, allocations: 359.3 kB / 335 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.1333, allocations: 204.7 kB / 335.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.1334, allocations: 4 kB / 335.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.1334, allocations: 38.56 kB / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.324e-06/0.1334, allocations: 7.938 kB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004733/0.1382, allocations: 2.024 MB / 337.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.243e-05/0.1383, allocations: 67.84 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1386, allocations: 194.8 kB / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.1387, allocations: 37.7 kB / 337.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1388, allocations: 144.9 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.139, allocations: 220.8 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.1391, allocations: 8 kB / 337.9 MB, free: 10.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1392, allocations: 346.8 kB / 338.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.1396, allocations: 161 kB / 338.4 MB, free: 9.656 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.1399, allocations: 181 kB / 338.6 MB, free: 9.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.1403, allocations: 186.1 kB / 338.8 MB, free: 9.297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1403, allocations: 0 / 338.8 MB, free: 9.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008502/0.1412, allocations: 0.4909 MB / 339.3 MB, free: 8.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1412, allocations: 4 kB / 339.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.1412, allocations: 0 / 339.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.1412, allocations: 7.938 kB / 339.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.1417, allocations: 127.8 kB / 339.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.1418, allocations: 11.94 kB / 339.4 MB, free: 8.652 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.142, allocations: 27.98 kB / 339.5 MB, free: 8.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.142, allocations: 16 kB / 339.5 MB, free: 8.609 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002024/0.1422, allocations: 165.7 kB / 339.6 MB, free: 8.438 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.978e-05/0.1423, allocations: 35.62 kB / 339.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.1425, allocations: 43.34 kB / 339.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.1425, allocations: 8 kB / 339.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.1425, allocations: 0 / 339.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.1425, allocations: 7.938 kB / 339.7 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003195/0.1457, allocations: 1.337 MB / 341.1 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.1458, allocations: 4 kB / 341.1 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.1466, allocations: 132.4 kB / 341.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-05/0.1466, allocations: 11.95 kB / 341.2 MB, free: 6.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.1467, allocations: 16 kB / 341.2 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.461e-05/0.1467, allocations: 8 kB / 341.2 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.1467, allocations: 7.938 kB / 341.2 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.1488, allocations: 0.9058 MB / 342.1 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.149, allocations: 108.7 kB / 342.3 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.1491, allocations: 23.98 kB / 342.3 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.1495, allocations: 31.98 kB / 342.3 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.1497, allocations: 51.84 kB / 342.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.1497, allocations: 23.98 kB / 342.4 MB, free: 5.488 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.1499, allocations: 140.4 kB / 342.5 MB, free: 5.352 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1499, allocations: 0 / 342.5 MB, free: 5.352 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007774/0.1507, allocations: 96 kB / 342.6 MB, free: 5.258 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.002372/0.1531, allocations: 1.451 MB / 344.1 MB, free: 3.727 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.1544, allocations: 450.5 kB / 344.5 MB, free: 3.285 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.1544, allocations: 4 kB / 344.5 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006682/0.1551, allocations: 256.7 kB / 344.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009979/0.1561, allocations: 79.89 kB / 344.8 MB, free: 2.953 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/0.1616, allocations: 2.41 MB / 347.2 MB, free: 444 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.1621, allocations: 0.7935 MB / 348 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003201/0.1624, allocations: 47.27 kB / 348.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002778/0.1627, allocations: 115.4 kB / 348.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1627, allocations: 4 kB / 348.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.1889, allocations: 6.776 MB / 355 MB, free: 8.684 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/0.1892, allocations: 185.5 kB / 355.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.263, allocations: 0 / 355.2 MB, free: 8.445 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat