Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1976/0.1976, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002468/0.002468, allocations: 72.66 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1046, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01675/0.1214, allocations: 16.14 MB / 496.3 MB, free: 4.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.1317, allocations: 5.028 MB / 0.4895 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002538/0.1343, allocations: 99.75 kB / 0.4896 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009469/0.1438, allocations: 5.167 MB / 0.4947 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006713/0.1506, allocations: 2.473 MB / 0.4971 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002887/0.1535, allocations: 1.186 MB / 0.4983 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008358/0.1618, allocations: 6.713 MB / 0.5048 GB, free: 260 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1975/0.3594, allocations: 6.356 MB / 0.511 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00442/0.3639, allocations: 2.591 MB / 0.5136 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006536/0.3704, allocations: 3.697 MB / 0.5172 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003011/0.3735, allocations: 0.5758 MB / 0.5177 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004994/0.3785, allocations: 1.266 MB / 0.519 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005606/0.3841, allocations: 3.21 MB / 0.5221 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007452/0.3916, allocations: 3.687 MB / 0.5257 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.4031, allocations: 10.77 MB / 0.5362 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4032, allocations: 0 / 0.5362 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4032, allocations: 0 / 0.5362 GB, free: 3.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000339/0.4035, allocations: 2.25 kB / 0.5362 GB, free: 3.875 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.0137/0.4172, allocations: 7.698 MB / 0.5437 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.4173, allocations: 16.66 kB / 0.5437 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001782/0.4191, allocations: 1.195 MB / 0.5449 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009334/0.4284, allocations: 2.614 MB / 0.5475 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006702/0.4351, allocations: 4.196 MB / 0.5516 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/0.4354, allocations: 432.4 kB / 0.552 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000938/0.4364, allocations: 0.5601 MB / 0.5525 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03871/0.4751, allocations: 19.78 MB / 0.5718 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002844/0.4754, allocations: 70.02 kB / 0.5719 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001634/0.4771, allocations: 273 kB / 0.5722 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004927/0.482, allocations: 3.146 MB / 0.5752 GB, free: 60 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03561/0.5176, allocations: 15.92 MB / 0.5908 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07096/0.5886, allocations: 64.08 MB / 0.6534 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/0.6062, allocations: 6.398 MB / 0.6596 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003651/0.6099, allocations: 2.081 MB / 0.6617 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01737/0.6273, allocations: 9.204 MB / 0.6706 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01478/0.6421, allocations: 4.194 MB / 0.6747 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 9.207e-06/0.6421, allocations: 0 / 0.6747 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.06119/0.7033, allocations: 21.61 MB / 0.6958 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.959e-05/0.7035, allocations: 165.9 kB / 0.696 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009072/0.7126, allocations: 5.793 MB / 0.7017 GB, free: 13.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004164/0.713, allocations: 65.7 kB / 0.7017 GB, free: 13.55 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004221/0.7172, allocations: 4.926 MB / 0.7065 GB, free: 8.621 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001465/0.7187, allocations: 1.135 MB / 0.7076 GB, free: 7.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00296/0.7217, allocations: 1.813 MB / 0.7094 GB, free: 5.668 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.7218, allocations: 304.6 kB / 0.7097 GB, free: 5.371 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00457/0.7264, allocations: 2.649 MB / 0.7123 GB, free: 2.715 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2047/0.9311, allocations: 8.199 MB / 0.7203 GB, free: 182.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/0.9436, allocations: 11.81 MB / 0.7318 GB, free: 173.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002582/0.9439, allocations: 57.66 kB / 0.7319 GB, free: 173.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.0202/0.9641, allocations: 10.58 MB / 0.7422 GB, free: 169.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.9644, allocations: 125.1 kB / 0.7423 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003072/0.9647, allocations: 204.6 kB / 0.7425 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003606/0.9651, allocations: 259.1 kB / 0.7428 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006763/0.9719, allocations: 2.199 MB / 0.7449 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003067/0.9722, allocations: 386.3 kB / 0.7453 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005516/0.9777, allocations: 468.4 kB / 0.7457 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007244/0.9784, allocations: 0.5448 MB / 0.7463 GB, free: 169.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.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 (1175): * Single equations (assignments): 1171 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004094/0.9825, allocations: 3.144 MB / 0.7493 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005491/0.9831, allocations: 0.5166 MB / 0.7498 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/0.9875, allocations: 3.069 MB / 0.7528 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.9876, allocations: 30.72 kB / 0.7529 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.9876, allocations: 3.938 kB / 0.7529 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.9876, allocations: 15.05 kB / 0.7529 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/1.003, allocations: 12.28 MB / 0.7649 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/1.003, allocations: 32 kB / 0.7649 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.005, allocations: 0.5954 MB / 0.7655 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-05/1.005, allocations: 44 kB / 0.7655 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/1.005, allocations: 91.69 kB / 0.7656 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.94e-05/1.005, allocations: 59.61 kB / 0.7657 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-05/1.005, allocations: 55.5 kB / 0.7657 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005482/1.01, allocations: 5.506 MB / 0.7711 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009733/1.011, allocations: 0.582 MB / 0.7717 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004858/1.012, allocations: 96.97 kB / 0.7718 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/1.014, allocations: 153.7 kB / 0.7719 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/1.014, allocations: 280.5 kB / 0.7722 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.014, allocations: 119.8 kB / 0.7723 GB, free: 153.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004206/1.018, allocations: 3.601 MB / 0.7758 GB, free: 150.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.92e-07/1.018, allocations: 0 / 0.7758 GB, free: 150.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006521/1.025, allocations: 1.423 MB / 0.7772 GB, free: 149.1 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006066/1.031, allocations: 6.227 MB / 0.7833 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009987/1.041, allocations: 6.673 MB / 0.7898 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.804e-05/1.041, allocations: 4 kB / 0.7898 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002499/1.044, allocations: 1.64 MB / 0.7914 GB, free: 135.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003823/1.047, allocations: 0.7604 MB / 0.7921 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07546/1.123, allocations: 81.48 MB / 0.8717 GB, free: 39.88 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005357/1.128, allocations: 4.764 MB / 0.8764 GB, free: 35.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005755/1.134, allocations: 2.567 MB / 0.8789 GB, free: 32.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003257/1.137, allocations: 3.159 MB / 0.882 GB, free: 29.35 MB / 0.545 GB Notification: Performance of SimCode: time 8.52e-07/1.137, allocations: 0 / 0.882 GB, free: 29.35 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3385/1.476, allocations: 99.38 MB / 0.979 GB, free: 171.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/11.57, allocations: 4.766 kB / 0.979 GB, free: 171.9 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches