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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000881/0.000881, allocations: 94.81 kB / 297.2 MB, free: 6.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 4 kB / 358 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2119, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09073/0.3027, allocations: 78.38 MB / 487.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.303, allocations: 63.97 kB / 487.9 MB, free: 12.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01542/0.3184, allocations: 5.871 MB / 493.8 MB, free: 6.301 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.3185, allocations: 4 kB / 493.8 MB, free: 6.297 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.3185, allocations: 4 kB / 493.8 MB, free: 6.293 MB / 362.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.001026/0.3195, allocations: 0.5852 MB / 494.4 MB, free: 5.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3196, allocations: 8.031 kB / 494.4 MB, free: 5.652 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.3197, allocations: 62.53 kB / 494.5 MB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.869e-05/0.3198, allocations: 35.62 kB / 494.5 MB, free: 5.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.3201, allocations: 254.3 kB / 494.7 MB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.3202, allocations: 20.56 kB / 494.8 MB, free: 5.238 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.3202, allocations: 24 kB / 494.8 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.3208, allocations: 284.8 kB / 495.1 MB, free: 4.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.3208, allocations: 15.83 kB / 495.1 MB, free: 4.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.3208, allocations: 8 kB / 495.1 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3209, allocations: 8 kB / 495.1 MB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000572/0.3214, allocations: 282.1 kB / 495.4 MB, free: 4.621 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.3227, allocations: 0.803 MB / 496.2 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006007/0.3233, allocations: 372.1 kB / 496.5 MB, free: 3.395 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.3234, allocations: 7.984 kB / 496.6 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.3234, allocations: 42.5 kB / 496.6 MB, free: 3.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.763e-06/0.3234, allocations: 0 / 496.6 MB, free: 3.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=63): time 0.004248/0.3277, allocations: 2.035 MB / 498.6 MB, free: 1.207 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.3277, allocations: 63.92 kB / 498.7 MB, free: 1.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.3279, allocations: 170.2 kB / 498.9 MB, free: 0.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.3279, allocations: 37.7 kB / 498.9 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.328, allocations: 141 kB / 499 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.3282, allocations: 228.8 kB / 499.3 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/0.3282, allocations: 8 kB / 499.3 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3284, allocations: 342.8 kB / 499.6 MB, free: 200 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003201/0.3287, allocations: 169 kB / 499.8 MB, free: 32 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.3291, allocations: 180.9 kB / 499.9 MB, free: 15.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.3294, allocations: 186.2 kB / 0.4884 GB, free: 15.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3294, allocations: 0 / 0.4884 GB, free: 15.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008403/0.3303, allocations: 494.7 kB / 0.4889 GB, free: 15.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3303, allocations: 8 kB / 0.4889 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3303, allocations: 7.938 kB / 0.4889 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3303, allocations: 3.938 kB / 0.4889 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.3308, allocations: 135.8 kB / 0.489 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3308, allocations: 0 / 0.489 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.331, allocations: 31.94 kB / 0.489 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.3311, allocations: 16 kB / 0.4891 GB, free: 14.98 MB / 378.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.0001862/0.3313, allocations: 157.7 kB / 0.4892 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.3313, allocations: 35.62 kB / 0.4892 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.3315, allocations: 55.33 kB / 0.4893 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3315, allocations: 4 kB / 0.4893 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3315, allocations: 0 / 0.4893 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3315, allocations: 3.984 kB / 0.4893 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.3334, allocations: 1.321 MB / 0.4906 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3334, allocations: 8 kB / 0.4906 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004882/0.3339, allocations: 128.4 kB / 0.4907 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.3339, allocations: 8 kB / 0.4907 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.334, allocations: 23.94 kB / 0.4908 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/0.334, allocations: 11.94 kB / 0.4908 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.334, allocations: 4 kB / 0.4908 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.3354, allocations: 1.115 MB / 0.4919 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.131e-05/0.3355, allocations: 108.7 kB / 0.492 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.3356, allocations: 23.98 kB / 0.492 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.3358, allocations: 35.98 kB / 0.492 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.3359, allocations: 43.84 kB / 0.4921 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.3359, allocations: 23.98 kB / 0.4921 GB, free: 11.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001061/0.3361, allocations: 140.6 kB / 0.4922 GB, free: 11.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3361, allocations: 0 / 0.4922 GB, free: 11.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003675/0.3364, allocations: 100 kB / 0.4923 GB, free: 11.32 MB / 378.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.002074/0.3385, allocations: 2.898 MB / 0.4951 GB, free: 8.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007782/0.3393, allocations: 450.7 kB / 0.4956 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3393, allocations: 0 / 0.4956 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004208/0.3397, allocations: 264.7 kB / 0.4958 GB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.3402, allocations: 71.31 kB / 0.4959 GB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.3436, allocations: 2.412 MB / 0.4983 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.344, allocations: 0.8052 MB / 0.499 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.3442, allocations: 51.25 kB / 0.4991 GB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.3444, allocations: 115.4 kB / 0.4992 GB, free: 4 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3444, allocations: 0 / 0.4992 GB, free: 4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1917/0.5361, allocations: 6.737 MB / 0.5058 GB, free: 96.99 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.5363, allocations: 182.3 kB / 0.506 GB, free: 96.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.487, allocations: 0 / 0.506 GB, free: 96.75 MB / 378.7 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