Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",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.002343/0.002343, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.212/2.212, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001158/0.001158, allocations: 88.42 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003901, allocations: 8 kB / 327 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3422, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002881/0.3452, allocations: 2.049 MB / 376.7 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3462, allocations: 395.8 kB / 377.1 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.3465, allocations: 4.5 kB / 377.1 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.496e-05/0.3466, allocations: 32.23 kB / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.3469, allocations: 114 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.3473, allocations: 71.14 kB / 377.3 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004475/0.3478, allocations: 261.2 kB / 377.5 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.348, allocations: 80.77 kB / 377.6 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.3482, allocations: 115 kB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.3485, allocations: 148.8 kB / 377.9 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.26e-05/0.3485, allocations: 15.44 kB / 377.9 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.3486, allocations: 17.09 kB / 377.9 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.3487, allocations: 52.72 kB / 378 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.109e-05/0.3488, allocations: 83.33 kB / 378 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.3491, allocations: 250.8 kB / 378.3 MB, free: 42.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.3491, allocations: 0 / 378.3 MB, free: 42.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3491, allocations: 4.969 kB / 378.3 MB, free: 42.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3492, allocations: 0 / 378.3 MB, free: 42.67 MB / 298.7 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.001453/0.3506, allocations: 0.5997 MB / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.3507, allocations: 9.094 kB / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.393e-05/0.3508, allocations: 67.62 kB / 379 MB, free: 42.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.796e-05/0.3509, allocations: 37.19 kB / 379 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.3513, allocations: 259 kB / 379.2 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.3513, allocations: 27.67 kB / 379.3 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.399e-05/0.3514, allocations: 27.75 kB / 379.3 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008724/0.3523, allocations: 276.5 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.3524, allocations: 5.219 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.222e-05/0.3524, allocations: 21.27 kB / 379.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3524, allocations: 8.156 kB / 379.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009919/0.3534, allocations: 277.4 kB / 379.9 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.3554, allocations: 0.803 MB / 380.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009606/0.3564, allocations: 365.5 kB / 381 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.3565, allocations: 12.77 kB / 381 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.3566, allocations: 36.47 kB / 381.1 MB, free: 40.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.126e-06/0.3566, allocations: 0 / 381.1 MB, free: 40.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.007679/0.3643, allocations: 2.033 MB / 383.1 MB, free: 39.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.3644, allocations: 58.56 kB / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.3646, allocations: 201.2 kB / 383.4 MB, free: 39.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.3647, allocations: 36.67 kB / 383.4 MB, free: 39.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.3648, allocations: 214.1 kB / 383.6 MB, free: 38.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/0.365, allocations: 217.8 kB / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.333e-05/0.3651, allocations: 10.06 kB / 383.8 MB, free: 38.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.3651, allocations: 332.4 kB / 384.2 MB, free: 38.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005872/0.3657, allocations: 166 kB / 384.3 MB, free: 38.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/0.3664, allocations: 173.9 kB / 384.5 MB, free: 38.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.367, allocations: 186.2 kB / 384.7 MB, free: 38.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.367, allocations: 0 / 384.7 MB, free: 38.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001428/0.3685, allocations: 487 kB / 385.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.3685, allocations: 6.094 kB / 385.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3686, allocations: 0 / 385.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.041e-05/0.3686, allocations: 6.094 kB / 385.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009332/0.3696, allocations: 129.9 kB / 385.3 MB, free: 37.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.3696, allocations: 2.781 kB / 385.3 MB, free: 37.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.37, allocations: 32.03 kB / 385.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.3701, allocations: 19.94 kB / 385.3 MB, free: 37.79 MB / 298.7 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.0002667/0.3704, allocations: 161.7 kB / 385.5 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.3705, allocations: 31.62 kB / 385.5 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.3706, allocations: 51.33 kB / 385.6 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.3706, allocations: 8 kB / 385.6 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.3707, allocations: 0 / 385.6 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.3707, allocations: 3.984 kB / 385.6 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.3735, allocations: 1.321 MB / 386.9 MB, free: 36.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.3735, allocations: 8.562 kB / 386.9 MB, free: 36.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009483/0.3745, allocations: 127.8 kB / 387 MB, free: 35.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.575e-05/0.3745, allocations: 8 kB / 387.1 MB, free: 35.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.3746, allocations: 23.94 kB / 387.1 MB, free: 35.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.3746, allocations: 8 kB / 387.1 MB, free: 35.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.3746, allocations: 7.938 kB / 387.1 MB, free: 35.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.3767, allocations: 1.104 MB / 388.2 MB, free: 34.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.3769, allocations: 112.6 kB / 388.3 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/0.377, allocations: 23.98 kB / 388.3 MB, free: 34.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.3774, allocations: 35.98 kB / 388.4 MB, free: 34.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.3776, allocations: 43.84 kB / 388.4 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.3776, allocations: 27.92 kB / 388.4 MB, free: 34.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.3778, allocations: 148.4 kB / 388.6 MB, free: 34.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3778, allocations: 0 / 388.6 MB, free: 34.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006038/0.3784, allocations: 96 kB / 388.7 MB, free: 34.13 MB / 298.7 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.00252/0.3809, allocations: 2.907 MB / 391.6 MB, free: 31.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.3823, allocations: 450.5 kB / 392 MB, free: 30.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.3824, allocations: 0 / 392 MB, free: 30.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/0.3831, allocations: 260.2 kB / 392.3 MB, free: 30.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008006/0.3839, allocations: 68.34 kB / 392.3 MB, free: 30.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005363/0.3893, allocations: 2.439 MB / 394.8 MB, free: 27.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.3897, allocations: 0.8013 MB / 395.6 MB, free: 26.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/0.39, allocations: 119.4 kB / 395.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.39, allocations: 4 kB / 395.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.485/2.875, allocations: 5.79 MB / 401.5 MB, free: 21.05 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat