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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008415/0.0008416, allocations: 99.03 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009084/0.0009086, allocations: 177.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 241.9 MB, free: 316 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1995/0.1995, allocations: 44.22 MB / 337.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 8 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1248, allocations: 61.92 MB / 471.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3267/0.4516, allocations: 78.4 MB / 0.5372 GB, free: 8.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04199/0.4936, allocations: 15.85 MB / 0.5526 GB, free: 14.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0177/0.5113, allocations: 368.1 kB / 0.553 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01418/0.5256, allocations: 4.135 MB / 0.557 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.034/0.5596, allocations: 11.99 MB / 0.5687 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006331/0.566, allocations: 1.069 MB / 0.5698 GB, free: 100 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.5773, allocations: 7.775 MB / 0.5774 GB, free: 8.309 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01462/0.592, allocations: 8.418 MB / 0.5856 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004738/0.5968, allocations: 2.043 MB / 0.5876 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006245/0.603, allocations: 3.357 MB / 0.5909 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001903/0.605, allocations: 260 kB / 0.5911 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003336/0.6083, allocations: 0.8739 MB / 0.592 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004086/0.6125, allocations: 2.883 MB / 0.5948 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00268/0.6152, allocations: 1.349 MB / 0.5961 GB, free: 5.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.6262, allocations: 8.826 MB / 0.6047 GB, free: 12.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.6262, allocations: 4 kB / 0.6047 GB, free: 12.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.6262, allocations: 4 kB / 0.6047 GB, free: 12.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005178/0.6268, allocations: 4 kB / 0.6047 GB, free: 12.17 MB / 446.1 MB 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.01503/0.6418, allocations: 6.513 MB / 0.6111 GB, free: 5.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.6419, allocations: 12.03 kB / 0.6111 GB, free: 5.559 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003739/0.6456, allocations: 1.231 MB / 0.6123 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.6567, allocations: 2.747 MB / 0.615 GB, free: 1.555 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.6672, allocations: 4.525 MB / 0.6194 GB, free: 12.97 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004709/0.6677, allocations: 443.1 kB / 0.6198 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002085/0.6698, allocations: 0.5622 MB / 0.6204 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03955/0.7093, allocations: 20.34 MB / 0.6402 GB, free: 6.484 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003281/0.7097, allocations: 75.25 kB / 0.6403 GB, free: 6.41 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002022/0.7118, allocations: 275.7 kB / 0.6406 GB, free: 6.141 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005117/0.7169, allocations: 3.337 MB / 0.6438 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03756/0.7545, allocations: 16.35 MB / 0.6598 GB, free: 2.418 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5785/1.333, allocations: 65.35 MB / 0.7236 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01694/1.35, allocations: 6.391 MB / 0.7299 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/1.353, allocations: 2.093 MB / 0.7319 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/1.368, allocations: 9.17 MB / 0.7409 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01247/1.38, allocations: 4.185 MB / 0.7449 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 1.042e-05/1.38, allocations: 0 / 0.7449 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.06285/1.443, allocations: 21.64 MB / 0.7661 GB, free: 127 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/1.443, allocations: 162 kB / 0.7662 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009199/1.452, allocations: 5.848 MB / 0.7719 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005055/1.453, allocations: 73.7 kB / 0.772 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003432/1.456, allocations: 5.06 MB / 0.777 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001103/1.458, allocations: 1.128 MB / 0.7781 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003606/1.458, allocations: 188 kB / 0.7782 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003365/1.458, allocations: 0.702 MB / 0.7789 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003568/1.462, allocations: 2.61 MB / 0.7815 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005513/1.467, allocations: 8.225 MB / 0.7895 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005708/1.473, allocations: 4.512 MB / 0.7939 GB, free: 96.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-05/1.473, allocations: 56 kB / 0.794 GB, free: 96.05 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.016/1.489, allocations: 10.57 MB / 0.8043 GB, free: 85.55 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001991/1.489, allocations: 113.7 kB / 0.8044 GB, free: 85.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002664/1.49, allocations: 200 kB / 0.8046 GB, free: 85.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/1.49, allocations: 292 kB / 0.8049 GB, free: 84.95 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006443/1.497, allocations: 2.219 MB / 0.807 GB, free: 82.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004031/1.497, allocations: 386.5 kB / 0.8074 GB, free: 82.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007272/1.504, allocations: 471.4 kB / 0.8079 GB, free: 81.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/1.506, allocations: 0.543 MB / 0.8084 GB, free: 81.35 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1184): * Single equations (assignments): 1180 * 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.005948/1.512, allocations: 3.243 MB / 0.8115 GB, free: 78.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.513, allocations: 0.5168 MB / 0.8121 GB, free: 77.57 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005488/1.518, allocations: 3.055 MB / 0.815 GB, free: 74.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.791e-05/1.518, allocations: 32 kB / 0.8151 GB, free: 74.46 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/1.518, allocations: 4 kB / 0.8151 GB, free: 74.46 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/1.518, allocations: 15.95 kB / 0.8151 GB, free: 74.44 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02131/1.54, allocations: 12.48 MB / 0.8273 GB, free: 61.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.605e-05/1.54, allocations: 28 kB / 0.8273 GB, free: 61.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/1.542, allocations: 0.609 MB / 0.8279 GB, free: 60.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.916e-05/1.542, allocations: 51.95 kB / 0.8279 GB, free: 60.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/1.542, allocations: 88.78 kB / 0.828 GB, free: 60.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.799e-05/1.542, allocations: 67.77 kB / 0.8281 GB, free: 60.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.517e-05/1.542, allocations: 47.81 kB / 0.8281 GB, free: 60.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006241/1.548, allocations: 5.46 MB / 0.8335 GB, free: 54.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.55, allocations: 0.5995 MB / 0.8341 GB, free: 53.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005699/1.551, allocations: 95.92 kB / 0.8341 GB, free: 53.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/1.552, allocations: 159.9 kB / 0.8343 GB, free: 53.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003109/1.553, allocations: 280 kB / 0.8346 GB, free: 53.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/1.553, allocations: 116.9 kB / 0.8347 GB, free: 53.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005579/1.559, allocations: 3.624 MB / 0.8382 GB, free: 49.71 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.559, allocations: 0 / 0.8382 GB, free: 49.71 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00794/1.567, allocations: 1.462 MB / 0.8396 GB, free: 48.25 MB / 0.5294 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (278): * Single equations (assignments): 273 * 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.007282/1.574, allocations: 6.176 MB / 0.8457 GB, free: 41.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01017/1.584, allocations: 6.04 MB / 0.8516 GB, free: 35.51 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.803e-05/1.584, allocations: 4 kB / 0.8516 GB, free: 35.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002949/1.587, allocations: 1.645 MB / 0.8532 GB, free: 33.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006081/1.593, allocations: 0.7754 MB / 0.8539 GB, free: 33.09 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09961/1.693, allocations: 54.57 MB / 0.9072 GB, free: 4.199 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01074/1.704, allocations: 4.895 MB / 0.912 GB, free: 15.28 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.009988/1.714, allocations: 2.607 MB / 0.9146 GB, free: 12.66 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005588/1.719, allocations: 3.256 MB / 0.9177 GB, free: 9.406 MB / 0.5763 GB Notification: Performance of SimCode: time 8.52e-07/1.719, allocations: 0 / 0.9177 GB, free: 9.406 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4089/2.128, allocations: 108.3 MB / 1.023 GB, free: 141.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/2.128, allocations: 177.6 kB / 1.024 GB, free: 141.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.329/7.457, allocations: 0 / 1.024 GB, free: 141.4 MB / 0.5763 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