Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007277/0.0007277, allocations: 100.4 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008682/0.0008684, allocations: 192.2 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002567, allocations: 7.984 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1204, allocations: 51.48 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002533/0.123, allocations: 2.196 MB / 360.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006274/0.1237, allocations: 370.7 kB / 360.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.1238, allocations: 11.94 kB / 360.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1239, allocations: 47.62 kB / 360.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.1241, allocations: 75.31 kB / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.1244, allocations: 67.92 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.1247, allocations: 354.4 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1249, allocations: 77.64 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.125, allocations: 123.6 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.1252, allocations: 143.4 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.1252, allocations: 16 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.815e-05/0.1253, allocations: 16 kB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.637e-05/0.1253, allocations: 51.83 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.777e-05/0.1254, allocations: 85.52 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.1256, allocations: 259.5 kB / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1257, allocations: 0 / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1257, allocations: 0 / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1257, allocations: 0 / 362.2 MB, free: 9.902 MB / 302.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.0009249/0.1266, allocations: 0.5963 MB / 362.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1267, allocations: 8.031 kB / 362.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.84e-05/0.1267, allocations: 70.53 kB / 362.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.021e-05/0.1268, allocations: 31.62 kB / 362.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.1271, allocations: 266.3 kB / 363.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.1271, allocations: 20.56 kB / 363.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.1272, allocations: 27.95 kB / 363.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.1277, allocations: 288.8 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.1278, allocations: 3.938 kB / 363.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.1278, allocations: 12 kB / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1278, allocations: 4 kB / 363.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005498/0.1284, allocations: 286.1 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1296, allocations: 0.7913 MB / 364.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.1302, allocations: 372.3 kB / 364.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003253/0.1305, allocations: 197.9 kB / 365.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.1306, allocations: 8 kB / 365.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.1306, allocations: 38.56 kB / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.423e-06/0.1306, allocations: 0 / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.003927/0.1346, allocations: 2.05 MB / 367.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.1346, allocations: 59.97 kB / 367.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.1348, allocations: 195 kB / 367.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.1348, allocations: 41.7 kB / 367.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.1349, allocations: 141 kB / 367.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.1351, allocations: 212.8 kB / 367.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.251e-05/0.1351, allocations: 12 kB / 367.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1353, allocations: 350.8 kB / 368.2 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.1356, allocations: 165 kB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.1359, allocations: 177 kB / 368.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.1362, allocations: 182.2 kB / 368.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1363, allocations: 4 kB / 368.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007678/0.137, allocations: 498.6 kB / 369.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1371, allocations: 8 kB / 369.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1371, allocations: 0 / 369.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1371, allocations: 7.938 kB / 369.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.1375, allocations: 123.9 kB / 369.3 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.1376, allocations: 4 kB / 369.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.1377, allocations: 35.97 kB / 369.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.1378, allocations: 12 kB / 369.4 MB, free: 2.363 MB / 302.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.0001652/0.1379, allocations: 161.7 kB / 369.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.138, allocations: 35.62 kB / 369.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1381, allocations: 47.33 kB / 369.6 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1381, allocations: 4 kB / 369.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.1381, allocations: 4 kB / 369.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1382, allocations: 3.984 kB / 369.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001873/0.14, allocations: 1.352 MB / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.1401, allocations: 4 kB / 371 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.1405, allocations: 127.8 kB / 371.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.906e-06/0.1405, allocations: 8 kB / 371.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.1406, allocations: 16 kB / 371.1 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/0.1406, allocations: 15.94 kB / 371.1 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/0.1406, allocations: 7.938 kB / 371.1 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2246/0.3652, allocations: 0.8986 MB / 372 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.3654, allocations: 109.8 kB / 372.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.3654, allocations: 19.77 kB / 372.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.3657, allocations: 31.38 kB / 372.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3658, allocations: 50.7 kB / 372.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.3659, allocations: 20.56 kB / 372.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.366, allocations: 145.1 kB / 372.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.366, allocations: 0 / 372.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.3665, allocations: 95.34 kB / 372.5 MB, free: 18.98 MB / 302.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.001665/0.3682, allocations: 1.455 MB / 374 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.3694, allocations: 448.7 kB / 374.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.3694, allocations: 1.656 kB / 374.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006534/0.3701, allocations: 261.3 kB / 374.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008608/0.371, allocations: 83.06 kB / 374.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.3749, allocations: 2.404 MB / 377.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.3752, allocations: 0.7915 MB / 377.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002518/0.3755, allocations: 48.22 kB / 378 MB, free: 16.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.3757, allocations: 122.7 kB / 378.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3757, allocations: 0 / 378.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.397, allocations: 6.77 MB / 384.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/0.3973, allocations: 194.8 kB / 385.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.266, allocations: 2.984 kB / 385.1 MB, free: 14.91 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat