Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.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.Damper,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper",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.001133/0.001133, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001194/0.001194, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1969/0.1969, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 71.88 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3134, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper): time 0.01579/0.3292, allocations: 16.4 MB / 0.5345 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.3412, allocations: 5.01 MB / 0.5394 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003252/0.3445, allocations: 101.6 kB / 0.5395 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009451/0.3539, allocations: 5.198 MB / 0.5445 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007214/0.3612, allocations: 2.648 MB / 0.5471 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002838/0.3641, allocations: 1.171 MB / 0.5483 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.3745, allocations: 6.668 MB / 0.5548 GB, free: 6.836 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008769/0.3833, allocations: 6.397 MB / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00491/0.3882, allocations: 2.64 MB / 0.5636 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005683/0.394, allocations: 3.739 MB / 0.5672 GB, free: 9.961 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002182/0.3962, allocations: 0.5859 MB / 0.5678 GB, free: 9.375 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003753/0.4, allocations: 1.299 MB / 0.5691 GB, free: 8.074 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004568/0.4046, allocations: 3.335 MB / 0.5723 GB, free: 4.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007088/0.4117, allocations: 3.791 MB / 0.576 GB, free: 0.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.4276, allocations: 11.56 MB / 0.5873 GB, free: 5.309 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4276, allocations: 0 / 0.5873 GB, free: 5.309 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4276, allocations: 0 / 0.5873 GB, free: 5.309 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003962/0.428, allocations: 4 kB / 0.5873 GB, free: 5.305 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.01866/0.4467, allocations: 8.047 MB / 0.5952 GB, free: 13.16 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.4467, allocations: 8.031 kB / 0.5952 GB, free: 13.15 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003722/0.4505, allocations: 1.228 MB / 0.5964 GB, free: 11.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01156/0.4621, allocations: 2.742 MB / 0.5991 GB, free: 9.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.4725, allocations: 4.643 MB / 0.6036 GB, free: 4.457 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004413/0.473, allocations: 451.2 kB / 0.604 GB, free: 4.016 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002056/0.4751, allocations: 0.5622 MB / 0.6046 GB, free: 3.453 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04403/0.5191, allocations: 20.27 MB / 0.6244 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003489/0.5195, allocations: 75.39 kB / 0.6245 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001757/0.5213, allocations: 271.8 kB / 0.6247 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005557/0.5269, allocations: 3.33 MB / 0.628 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03793/0.5648, allocations: 16.3 MB / 0.6439 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08571/0.6506, allocations: 65.14 MB / 0.7075 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01699/0.6676, allocations: 6.279 MB / 0.7136 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4292/1.097, allocations: 2.077 MB / 0.7157 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01582/1.113, allocations: 9.142 MB / 0.7246 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/1.113, allocations: 62.83 kB / 0.7246 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=257): time 6.081e-06/1.113, allocations: 0 / 0.7246 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=291): time 0.05224/1.165, allocations: 21.7 MB / 0.7458 GB, free: 156.2 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/1.165, allocations: 165.7 kB / 0.746 GB, free: 156 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006338/1.172, allocations: 5.886 MB / 0.7517 GB, free: 151.9 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003988/1.172, allocations: 65.7 kB / 0.7518 GB, free: 151.9 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.001912/1.174, allocations: 5.163 MB / 0.7568 GB, free: 147 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008512/1.175, allocations: 1.165 MB / 0.758 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001621/1.176, allocations: 1.832 MB / 0.7598 GB, free: 144 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.473e-05/1.176, allocations: 301.1 kB / 0.7601 GB, free: 143.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003139/1.18, allocations: 2.602 MB / 0.7626 GB, free: 141.1 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004769/1.184, allocations: 8.211 MB / 0.7706 GB, free: 130.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009825/1.194, allocations: 11.77 MB / 0.7821 GB, free: 115.7 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/1.194, allocations: 56 kB / 0.7822 GB, free: 115.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.01648/1.211, allocations: 10.54 MB / 0.7925 GB, free: 105.1 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/1.211, allocations: 88 kB / 0.7925 GB, free: 105 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001855/1.211, allocations: 200 kB / 0.7927 GB, free: 104.8 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/1.211, allocations: 263 kB / 0.793 GB, free: 104.6 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0063/1.218, allocations: 2.199 MB / 0.7951 GB, free: 102.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00027/1.218, allocations: 390.5 kB / 0.7955 GB, free: 102 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005945/1.224, allocations: 447.5 kB / 0.7959 GB, free: 101.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.225, allocations: 0.5468 MB / 0.7965 GB, free: 101 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 78 (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 (1180): * Single equations (assignments): 1177 * Array equations: 3 * Algorithm blocks: 0 * 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.004982/1.23, allocations: 3.233 MB / 0.7996 GB, free: 97.75 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.231, allocations: 0.5471 MB / 0.8002 GB, free: 97.2 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004847/1.236, allocations: 2.961 MB / 0.803 GB, free: 94.21 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/1.236, allocations: 32 kB / 0.8031 GB, free: 94.18 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/1.236, allocations: 4 kB / 0.8031 GB, free: 94.18 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.458e-05/1.236, allocations: 15.89 kB / 0.8031 GB, free: 94.16 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02066/1.257, allocations: 12.43 MB / 0.8152 GB, free: 81.27 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.28e-05/1.257, allocations: 32.06 kB / 0.8153 GB, free: 81.23 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/1.259, allocations: 0.539 MB / 0.8158 GB, free: 80.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.717e-05/1.259, allocations: 44 kB / 0.8158 GB, free: 80.65 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002169/1.259, allocations: 92 kB / 0.8159 GB, free: 80.56 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.701e-05/1.259, allocations: 63.78 kB / 0.816 GB, free: 80.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.892e-05/1.259, allocations: 47.81 kB / 0.816 GB, free: 80.45 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005787/1.265, allocations: 5.577 MB / 0.8215 GB, free: 74.35 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/1.266, allocations: 0.6143 MB / 0.8221 GB, free: 73.71 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.268, allocations: 97 kB / 0.8222 GB, free: 73.62 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002663/1.27, allocations: 123.9 kB / 0.8223 GB, free: 73.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/1.271, allocations: 271.9 kB / 0.8225 GB, free: 73.23 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/1.271, allocations: 122.3 kB / 0.8227 GB, free: 73.12 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005897/1.277, allocations: 3.643 MB / 0.8262 GB, free: 69.47 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.21e-07/1.277, allocations: 3.938 kB / 0.8262 GB, free: 69.47 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007708/1.285, allocations: 1.457 MB / 0.8276 GB, free: 68.01 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * Number of states: 7 (body.frame_a.r_0[1],body.v_0[1],prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (275): * Single equations (assignments): 272 * Array equations: 3 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.006503/1.291, allocations: 6.29 MB / 0.8338 GB, free: 61.18 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008259/1.299, allocations: 6.019 MB / 0.8397 GB, free: 55.19 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.008e-05/1.299, allocations: 4 kB / 0.8397 GB, free: 55.19 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/1.301, allocations: 1.335 MB / 0.841 GB, free: 53.86 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005542/1.307, allocations: 0.795 MB / 0.8418 GB, free: 53.07 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08939/1.396, allocations: 68.44 MB / 0.9086 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007623/1.404, allocations: 4.89 MB / 0.9134 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006188/1.41, allocations: 2.599 MB / 0.9159 GB, free: 15 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004688/1.415, allocations: 3.288 MB / 0.9191 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of SimCode: time 1.072e-06/1.415, allocations: 0 / 0.9191 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3591/1.774, allocations: 94.18 MB / 1.011 GB, free: 168 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.63/23.41, allocations: 16.95 kB / 1.011 GB, free: 168 MB / 0.6232 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper_res.csv --start-time 0 --stop-time 7 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0028 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches