Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 98.62 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1934/0.1934, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.397e-05/3.399e-05, allocations: 4 kB / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.143, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4264/0.5695, allocations: 109.9 MB / 0.6091 GB, free: 11.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5698, allocations: 75.97 kB / 0.6092 GB, free: 11.27 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7112/1.281, allocations: 141.2 MB / 0.7471 GB, free: 113 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.874e-06/1.281, allocations: 3.938 kB / 0.7471 GB, free: 113 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002746/1.281, allocations: 144.4 kB / 0.7472 GB, free: 113 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.02031/1.302, allocations: 6.435 MB / 0.7535 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/1.302, allocations: 13.78 kB / 0.7535 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004713/1.306, allocations: 1.305 MB / 0.7548 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01844/1.325, allocations: 3.549 MB / 0.7583 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01721/1.342, allocations: 7.083 MB / 0.7652 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005589/1.343, allocations: 0.5692 MB / 0.7657 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003561/1.346, allocations: 0.7541 MB / 0.7665 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04797/1.394, allocations: 20.68 MB / 0.7867 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003419/1.395, allocations: 98.31 kB / 0.7868 GB, free: 102 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/1.396, allocations: 368.5 kB / 0.7871 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002777/1.399, allocations: 1.819 MB / 0.7889 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03818/1.437, allocations: 16.37 MB / 0.8049 GB, free: 94.29 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09962/1.537, allocations: 77.17 MB / 0.8802 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02332/1.56, allocations: 6.135 MB / 0.8862 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004162/1.565, allocations: 1.949 MB / 0.8881 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/1.579, allocations: 9.265 MB / 0.8972 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01419/1.593, allocations: 4.082 MB / 0.9012 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=260): time 5.891e-06/1.593, allocations: 0 / 0.9012 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=294): time 0.4164/2.009, allocations: 19.69 MB / 0.9204 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/2.01, allocations: 161.4 kB / 0.9206 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/2.02, allocations: 5.118 MB / 0.9256 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006133/2.02, allocations: 71.02 kB / 0.9256 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005054/2.025, allocations: 5.062 MB / 0.9306 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001535/2.027, allocations: 1.127 MB / 0.9317 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003898/2.027, allocations: 190 kB / 0.9319 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005704/2.028, allocations: 0.6959 MB / 0.9325 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004687/2.033, allocations: 2.445 MB / 0.9349 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007453/2.04, allocations: 7.985 MB / 0.9427 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007134/2.047, allocations: 4.405 MB / 0.947 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/2.047, allocations: 58.16 kB / 0.9471 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.01615/2.063, allocations: 10.21 MB / 0.957 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/2.064, allocations: 117 kB / 0.9572 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002128/2.064, allocations: 194.9 kB / 0.9573 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003318/2.064, allocations: 299.1 kB / 0.9576 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007021/2.071, allocations: 2.248 MB / 0.9598 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002837/2.072, allocations: 385.8 kB / 0.9602 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00798/2.08, allocations: 0.5866 MB / 0.9608 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/2.081, allocations: 0.5424 MB / 0.9613 GB, free: 103.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * Number of states: 0 () * Number of discrete variables: 83 ($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.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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 (1178): * Single equations (assignments): 1174 * 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.001328/2.082, allocations: 0.8397 MB / 0.9621 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/2.083, allocations: 0.5217 MB / 0.9626 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004612/2.088, allocations: 2.82 MB / 0.9654 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-05/2.088, allocations: 28.28 kB / 0.9654 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/2.088, allocations: 3.531 kB / 0.9654 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/2.088, allocations: 13.31 kB / 0.9654 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02211/2.11, allocations: 12.27 MB / 0.9774 GB, free: 96.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.645e-05/2.11, allocations: 32.84 kB / 0.9774 GB, free: 96.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/2.112, allocations: 0.5391 MB / 0.978 GB, free: 96.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.792e-05/2.112, allocations: 48.06 kB / 0.978 GB, free: 96.22 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/2.112, allocations: 91.89 kB / 0.9781 GB, free: 96.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.644e-05/2.112, allocations: 71.27 kB / 0.9782 GB, free: 96.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.621e-05/2.112, allocations: 46.25 kB / 0.9782 GB, free: 96.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007983/2.12, allocations: 10.84 MB / 0.9888 GB, free: 86.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/2.123, allocations: 0.5932 MB / 0.9894 GB, free: 85.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007067/2.124, allocations: 96.92 kB / 0.9895 GB, free: 85.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/2.126, allocations: 202.5 kB / 0.9897 GB, free: 85.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003581/2.126, allocations: 280.3 kB / 0.9899 GB, free: 85.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000173/2.126, allocations: 116.4 kB / 0.99 GB, free: 85.48 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006436/2.133, allocations: 3.538 MB / 0.9935 GB, free: 84.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.61e-07/2.133, allocations: 0 / 0.9935 GB, free: 84.24 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01043/2.143, allocations: 1.478 MB / 0.9949 GB, free: 84.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * 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 (272): * Single equations (assignments): 267 * 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.009827/2.153, allocations: 17.29 MB / 1.012 GB, free: 68.39 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009768/2.163, allocations: 5.777 MB / 1.017 GB, free: 66.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.457e-05/2.163, allocations: 3.5 kB / 1.017 GB, free: 66.36 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002786/2.166, allocations: 1.574 MB / 1.019 GB, free: 65.78 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006272/2.172, allocations: 0.7247 MB / 1.02 GB, free: 65.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04345/2.216, allocations: 14.25 MB / 1.034 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007135/2.223, allocations: 5.029 MB / 1.039 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006995/2.23, allocations: 2.615 MB / 1.041 GB, free: 50.59 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004566/2.234, allocations: 3.238 MB / 1.044 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.483e-06/2.234, allocations: 0 / 1.044 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5189/2.753, allocations: 108.7 MB / 1.15 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000147/2.754, allocations: 144.9 kB / 1.151 GB, free: 119 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.922/9.676, allocations: 0 / 1.151 GB, free: 119 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat