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: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2304/0.2304, allocations: 46.11 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001359, allocations: 75.95 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 62.45 MB / 479.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2721/0.3821, allocations: 75.1 MB / 0.542 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03716/0.4193, allocations: 14.54 MB / 0.5562 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01897/0.4383, allocations: 325.3 kB / 0.5565 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009779/0.4481, allocations: 5.169 MB / 0.5616 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00742/0.4557, allocations: 2.329 MB / 0.5639 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003075/0.4588, allocations: 1.092 MB / 0.5649 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01259/0.4714, allocations: 9.669 MB / 0.5744 GB, free: 6.656 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00883/0.4803, allocations: 6.371 MB / 0.5806 GB, free: 240 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004781/0.4851, allocations: 2.336 MB / 0.5829 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006178/0.4913, allocations: 3.934 MB / 0.5867 GB, free: 9.945 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002082/0.4934, allocations: 452 kB / 0.5871 GB, free: 9.504 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003833/0.4973, allocations: 1.194 MB / 0.5883 GB, free: 8.309 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004929/0.5022, allocations: 3.129 MB / 0.5914 GB, free: 5.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007614/0.5099, allocations: 3.557 MB / 0.5948 GB, free: 1.594 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.5208, allocations: 8.704 MB / 0.6033 GB, free: 8.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5208, allocations: 0 / 0.6033 GB, free: 8.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5208, allocations: 0 / 0.6033 GB, free: 8.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004824/0.5213, allocations: 0 / 0.6033 GB, free: 8.871 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: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.02235/0.5437, allocations: 7.664 MB / 0.6108 GB, free: 1.121 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5437, allocations: 8.875 kB / 0.6108 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.5549, allocations: 2.585 MB / 0.6134 GB, free: 14.51 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008328/0.5633, allocations: 3.537 MB / 0.6168 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005215/0.5639, allocations: 431.5 kB / 0.6172 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.5661, allocations: 0.5581 MB / 0.6178 GB, free: 9.934 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04459/0.6107, allocations: 19.78 MB / 0.6371 GB, free: 5.023 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005477/0.6113, allocations: 79.33 kB / 0.6372 GB, free: 4.945 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002418/0.6137, allocations: 267.8 kB / 0.6374 GB, free: 4.684 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005327/0.6191, allocations: 3.15 MB / 0.6405 GB, free: 1.531 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03767/0.6568, allocations: 15.93 MB / 0.656 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4413/1.098, allocations: 64.06 MB / 0.7186 GB, free: 181.4 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01776/1.116, allocations: 6.401 MB / 0.7249 GB, free: 180.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003287/1.119, allocations: 2.077 MB / 0.7269 GB, free: 180.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/1.133, allocations: 9.209 MB / 0.7359 GB, free: 177.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01263/1.146, allocations: 4.205 MB / 0.74 GB, free: 177.1 MB / 0.545 GB Notification: Performance of pre-optimization done (n=260): time 5.461e-06/1.146, allocations: 0 / 0.74 GB, free: 177.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=294): time 0.05363/1.199, allocations: 21.6 MB / 0.7611 GB, free: 168.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/1.2, allocations: 161.5 kB / 0.7612 GB, free: 168.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009516/1.209, allocations: 5.768 MB / 0.7669 GB, free: 165.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005942/1.21, allocations: 76.52 kB / 0.7669 GB, free: 165.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003596/1.213, allocations: 4.921 MB / 0.7717 GB, free: 161.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001386/1.215, allocations: 1.136 MB / 0.7729 GB, free: 160.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004114/1.219, allocations: 1.816 MB / 0.7746 GB, free: 158.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/1.219, allocations: 305.1 kB / 0.7749 GB, free: 158.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004243/1.223, allocations: 2.673 MB / 0.7775 GB, free: 155.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006325/1.23, allocations: 8.242 MB / 0.7856 GB, free: 144.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/1.241, allocations: 11.85 MB / 0.7972 GB, free: 130.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001897/1.241, allocations: 56 kB / 0.7972 GB, free: 130.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01837/1.259, allocations: 10.64 MB / 0.8076 GB, free: 119.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002358/1.259, allocations: 121.6 kB / 0.8077 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002407/1.26, allocations: 196 kB / 0.8079 GB, free: 119.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/1.26, allocations: 267.9 kB / 0.8082 GB, free: 119 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006587/1.267, allocations: 2.223 MB / 0.8103 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002928/1.267, allocations: 382.5 kB / 0.8107 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006273/1.273, allocations: 471.4 kB / 0.8111 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001434/1.275, allocations: 0.5507 MB / 0.8117 GB, free: 115.4 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 (1187): * Single equations (assignments): 1183 * 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.005643/1.28, allocations: 3.152 MB / 0.8148 GB, free: 112.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/1.282, allocations: 0.5206 MB / 0.8153 GB, free: 111.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006203/1.288, allocations: 3.069 MB / 0.8183 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.373e-05/1.288, allocations: 28 kB / 0.8183 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/1.288, allocations: 4 kB / 0.8183 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/1.288, allocations: 11.95 kB / 0.8183 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02141/1.309, allocations: 12.27 MB / 0.8303 GB, free: 95.85 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.109e-05/1.309, allocations: 36.03 kB / 0.8303 GB, free: 95.81 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002251/1.312, allocations: 0.5849 MB / 0.8309 GB, free: 95.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.615e-05/1.312, allocations: 44 kB / 0.8309 GB, free: 95.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002872/1.312, allocations: 95.92 kB / 0.831 GB, free: 95.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-05/1.312, allocations: 71.78 kB / 0.8311 GB, free: 95.02 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.88e-05/1.312, allocations: 43.81 kB / 0.8311 GB, free: 94.98 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0067/1.319, allocations: 5.513 MB / 0.8365 GB, free: 88.92 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.32, allocations: 0.5763 MB / 0.8371 GB, free: 88.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.322, allocations: 91.97 kB / 0.8372 GB, free: 88.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00283/1.324, allocations: 155.9 kB / 0.8373 GB, free: 88.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004389/1.325, allocations: 279.9 kB / 0.8376 GB, free: 87.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.325, allocations: 120 kB / 0.8377 GB, free: 87.69 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006332/1.331, allocations: 3.585 MB / 0.8412 GB, free: 84.13 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/1.331, allocations: 4 kB / 0.8412 GB, free: 84.13 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008122/1.34, allocations: 1.421 MB / 0.8426 GB, free: 82.71 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.0008159/1.34, allocations: 262.8 kB / 0.8428 GB, free: 82.46 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009528/1.35, allocations: 6.108 MB / 0.8488 GB, free: 76.37 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.029e-05/1.35, allocations: 16 kB / 0.8488 GB, free: 76.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002554/1.353, allocations: 1.551 MB / 0.8503 GB, free: 74.81 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005488/1.358, allocations: 0.7327 MB / 0.8511 GB, free: 74.08 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02601/1.384, allocations: 18.41 MB / 0.869 GB, free: 55.23 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006324/1.39, allocations: 4.754 MB / 0.8737 GB, free: 50.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001464/1.392, allocations: 451.4 kB / 0.8741 GB, free: 50.01 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.392, allocations: 0 / 0.8741 GB, free: 50.01 MB / 0.545 GB Notification: Performance of Templates: time 0.3257/1.718, allocations: 83.33 MB / 0.9555 GB, free: 154.3 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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