Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Damper2",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.001251/0.001251, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 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.2 MB / 218.9 MB, free: 9.199 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.000868/0.0008678, allocations: 89.84 kB / 267 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3972/0.3972, allocations: 43.47 MB / 358.6 MB, free: 52.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.774e-05, allocations: 4 kB / 425.4 MB, free: 8.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1407, allocations: 58.84 MB / 484.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4587/0.5994, allocations: 109 MB / 0.5793 GB, free: 11.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5998, allocations: 86.28 kB / 0.5794 GB, free: 11.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6742/1.274, allocations: 146.8 MB / 0.7227 GB, free: 84.14 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.274, allocations: 4 kB / 0.7227 GB, free: 84.13 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000354/1.274, allocations: 151.8 kB / 0.7228 GB, free: 84.12 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.02523/1.3, allocations: 6.734 MB / 0.7294 GB, free: 81.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/1.3, allocations: 7.812 kB / 0.7294 GB, free: 81.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007763/1.307, allocations: 1.381 MB / 0.7308 GB, free: 81.17 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01934/1.327, allocations: 3.627 MB / 0.7343 GB, free: 80.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02172/1.349, allocations: 7.695 MB / 0.7418 GB, free: 79.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001165/1.35, allocations: 0.597 MB / 0.7424 GB, free: 78.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005902/1.356, allocations: 0.7881 MB / 0.7432 GB, free: 78.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05934/1.415, allocations: 21.55 MB / 0.7642 GB, free: 69.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006506/1.416, allocations: 101.5 kB / 0.7643 GB, free: 68.99 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004946/1.421, allocations: 381.6 kB / 0.7647 GB, free: 68.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003847/1.425, allocations: 1.939 MB / 0.7666 GB, free: 68.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04223/1.467, allocations: 17.21 MB / 0.7834 GB, free: 58.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5431/2.01, allocations: 79.66 MB / 0.8612 GB, free: 41.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01807/2.028, allocations: 6.491 MB / 0.8675 GB, free: 40.88 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003768/2.032, allocations: 2.168 MB / 0.8696 GB, free: 40.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01987/2.052, allocations: 9.943 MB / 0.8793 GB, free: 38.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01422/2.066, allocations: 4.291 MB / 0.8835 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=299): time 6.883e-06/2.066, allocations: 0 / 0.8835 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=333): time 0.07354/2.14, allocations: 21.03 MB / 0.9041 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/2.14, allocations: 168.5 kB / 0.9042 GB, free: 33.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01146/2.152, allocations: 5.287 MB / 0.9094 GB, free: 33 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008078/2.152, allocations: 78.52 kB / 0.9095 GB, free: 32.97 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005508/2.158, allocations: 5.302 MB / 0.9146 GB, free: 29.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002041/2.16, allocations: 1.271 MB / 0.9159 GB, free: 29.26 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008878/2.161, allocations: 196.6 kB / 0.9161 GB, free: 29.26 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005571/2.161, allocations: 0.7138 MB / 0.9168 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004358/2.166, allocations: 2.658 MB / 0.9194 GB, free: 28.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008065/2.174, allocations: 8.401 MB / 0.9276 GB, free: 21.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009039/2.183, allocations: 4.703 MB / 0.9322 GB, free: 19.72 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002577/2.183, allocations: 60.97 kB / 0.9322 GB, free: 19.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1278) (initialization): time 0.02563/2.209, allocations: 10.87 MB / 0.9428 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002363/2.209, allocations: 120.1 kB / 0.943 GB, free: 16.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003622/2.21, allocations: 202.6 kB / 0.9431 GB, free: 16.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/2.21, allocations: 301.1 kB / 0.9434 GB, free: 16.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00907/2.219, allocations: 2.392 MB / 0.9458 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004327/2.22, allocations: 400.4 kB / 0.9462 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01109/2.231, allocations: 0.6165 MB / 0.9468 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002583/2.233, allocations: 0.573 MB / 0.9473 GB, free: 15.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 928 * Number of states: 0 () * Number of discrete variables: 77 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1253): * Single equations (assignments): 1249 * Array equations: 3 * Algorithm blocks: 1 * 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.003459/2.237, allocations: 0.8638 MB / 0.9482 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002011/2.239, allocations: 0.5498 MB / 0.9487 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006993/2.246, allocations: 3.273 MB / 0.9519 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.132e-05/2.246, allocations: 33.06 kB / 0.9519 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/2.246, allocations: 3.562 kB / 0.9519 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-05/2.246, allocations: 16.61 kB / 0.9519 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03025/2.276, allocations: 13.58 MB / 0.9652 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-05/2.276, allocations: 40.3 kB / 0.9652 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/2.279, allocations: 0.6078 MB / 0.9658 GB, free: 8.031 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-05/2.279, allocations: 52.91 kB / 0.9659 GB, free: 8.031 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002528/2.279, allocations: 99.42 kB / 0.966 GB, free: 7.992 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6e-05/2.279, allocations: 71.83 kB / 0.966 GB, free: 7.977 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.572e-05/2.279, allocations: 52 kB / 0.9661 GB, free: 7.961 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/2.29, allocations: 11.96 MB / 0.9778 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004233/2.294, allocations: 0.8564 MB / 0.9786 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001884/2.296, allocations: 102.6 kB / 0.9787 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003793/2.3, allocations: 220.5 kB / 0.9789 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005157/2.3, allocations: 305.5 kB / 0.9792 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002563/2.301, allocations: 136.8 kB / 0.9793 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009159/2.31, allocations: 3.66 MB / 0.9829 GB, free: 7.078 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/2.31, allocations: 4 kB / 0.9829 GB, free: 7.074 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01449/2.324, allocations: 1.587 MB / 0.9845 GB, free: 5.496 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 148 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (314): * Single equations (assignments): 309 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.01511/2.339, allocations: 18.5 MB / 1.003 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01367/2.353, allocations: 6.288 MB / 1.009 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.305e-05/2.353, allocations: 8 kB / 1.009 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004363/2.358, allocations: 1.799 MB / 1.01 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006397/2.364, allocations: 0.7175 MB / 1.011 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05048/2.415, allocations: 15.27 MB / 1.026 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01087/2.426, allocations: 5.289 MB / 1.031 GB, free: 8.574 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009072/2.435, allocations: 2.772 MB / 1.034 GB, free: 6.824 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00824/2.443, allocations: 3.468 MB / 1.037 GB, free: 3.598 MB / 0.5573 GB Notification: Performance of SimCode: time 2.345e-06/2.443, allocations: 0 / 1.037 GB, free: 3.598 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5966/3.04, allocations: 115 MB / 1.15 GB, free: 163.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/3.04, allocations: 149.1 kB / 1.15 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.006/10.05, allocations: 0 / 1.15 GB, free: 163.7 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat