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.001073/0.001073, allocations: 100.8 kB / 16.94 MB, free: 5.723 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.001111/0.001111, allocations: 186.9 kB / 17.83 MB, free: 5.344 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.703/1.703, allocations: 205.4 MB / 224 MB, free: 13.19 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.000488/0.0004881, allocations: 8 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1107, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002983/0.1138, allocations: 2.055 MB / 330.5 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.1149, allocations: 382.9 kB / 330.9 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.1152, allocations: 4 kB / 330.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1153, allocations: 35.69 kB / 330.9 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003644/0.1157, allocations: 123.6 kB / 331 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.1161, allocations: 59.92 kB / 331.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.1164, allocations: 255.5 kB / 331.3 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.1167, allocations: 93.61 kB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1168, allocations: 107.6 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.117, allocations: 151.4 kB / 331.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.1171, allocations: 16 kB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.2e-05/0.1171, allocations: 16 kB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.076e-05/0.1172, allocations: 55.7 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.48e-05/0.1173, allocations: 77.58 kB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.1175, allocations: 267.5 kB / 332.1 MB, free: 332 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1175, allocations: 0 / 332.1 MB, free: 332 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1176, allocations: 0 / 332.1 MB, free: 332 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1176, allocations: 0 / 332.1 MB, free: 332 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.00112/0.1187, allocations: 0.5925 MB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1188, allocations: 12.03 kB / 332.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.564e-05/0.1189, allocations: 62.53 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.1189, allocations: 35.53 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.1193, allocations: 262.3 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.473e-05/0.1193, allocations: 32.45 kB / 333.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.1194, allocations: 31.91 kB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.12, allocations: 276.8 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.1201, allocations: 4 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.1201, allocations: 8 kB / 333.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.1201, allocations: 8 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007297/0.1209, allocations: 286 kB / 333.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.1223, allocations: 0.803 MB / 334.5 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.1229, allocations: 363.2 kB / 334.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.123, allocations: 8 kB / 334.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.123, allocations: 38.56 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.123, allocations: 0 / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004395/0.1274, allocations: 2.024 MB / 336.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1275, allocations: 63.95 kB / 337 MB, free: 11.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1277, allocations: 198.8 kB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.1278, allocations: 37.7 kB / 337.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.1279, allocations: 152.9 kB / 337.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.128, allocations: 212.8 kB / 337.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.1281, allocations: 12 kB / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1282, allocations: 346.8 kB / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.1286, allocations: 165 kB / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003194/0.1289, allocations: 173 kB / 338.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000359/0.1293, allocations: 182.2 kB / 338.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1293, allocations: 4 kB / 338.4 MB, free: 9.672 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008772/0.1302, allocations: 0.4908 MB / 338.9 MB, free: 9.176 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1302, allocations: 8 kB / 338.9 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1302, allocations: 0 / 338.9 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1302, allocations: 7.938 kB / 338.9 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.1307, allocations: 123.8 kB / 339 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.1307, allocations: 4 kB / 339 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.1309, allocations: 31.94 kB / 339.1 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.131, allocations: 20 kB / 339.1 MB, free: 8.984 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.0001828/0.1312, allocations: 161.8 kB / 339.3 MB, free: 8.816 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.1312, allocations: 31.62 kB / 339.3 MB, free: 8.785 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1314, allocations: 47.34 kB / 339.3 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.1314, allocations: 8 kB / 339.3 MB, free: 8.734 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.1314, allocations: 0 / 339.3 MB, free: 8.734 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1314, allocations: 3.984 kB / 339.3 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.1337, allocations: 1.333 MB / 340.7 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.1337, allocations: 8.031 kB / 340.7 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005013/0.1342, allocations: 131.8 kB / 340.8 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/0.1342, allocations: 4 kB / 340.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.1343, allocations: 19.95 kB / 340.8 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.295e-06/0.1343, allocations: 11.94 kB / 340.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.1343, allocations: 4 kB / 340.9 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.1359, allocations: 1.108 MB / 342 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1361, allocations: 120.7 kB / 342.1 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.725e-05/0.1361, allocations: 23.95 kB / 342.1 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002777/0.1364, allocations: 27.98 kB / 342.1 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.1365, allocations: 59.83 kB / 342.2 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.512e-05/0.1366, allocations: 20 kB / 342.2 MB, free: 5.551 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.1367, allocations: 140.4 kB / 342.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1367, allocations: 0 / 342.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004439/0.1372, allocations: 96 kB / 342.4 MB, free: 5.32 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.002758/0.14, allocations: 2.895 MB / 345.3 MB, free: 2.277 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009008/0.1409, allocations: 450.5 kB / 345.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.1409, allocations: 0 / 345.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.1414, allocations: 267.5 kB / 346 MB, free: 1.574 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005428/0.1419, allocations: 76.92 kB / 346.1 MB, free: 1.5 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.1461, allocations: 2.399 MB / 348.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.1466, allocations: 0.8052 MB / 349.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.1468, allocations: 47.27 kB / 349.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.147, allocations: 119.4 kB / 349.5 MB, free: 14 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.147, allocations: 0 / 349.5 MB, free: 14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.1675, allocations: 6.744 MB / 356.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.1677, allocations: 184.3 kB / 356.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.016, allocations: 0 / 356.4 MB, free: 7.016 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