Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",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.001549/0.001549, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.002227/0.002227, allocations: 189.6 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.289/2.289, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.67 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1728, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.0325/0.2053, allocations: 17.29 MB / 367.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3603/0.5657, allocations: 5.463 MB / 372.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006418/0.5722, allocations: 122.8 kB / 373 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01647/0.5888, allocations: 4.365 MB / 377.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.6026, allocations: 2.749 MB / 380.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005857/0.6085, allocations: 1.458 MB / 381.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01979/0.6283, allocations: 8.47 MB / 390.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01323/0.6416, allocations: 5.389 MB / 395.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009763/0.6515, allocations: 2.67 MB / 398.1 MB, free: 472 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01078/0.6623, allocations: 3.84 MB / 402 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003868/0.6663, allocations: 0.5352 MB / 402.5 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0103/0.6766, allocations: 1.623 MB / 404.1 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00904/0.6858, allocations: 3.322 MB / 407.5 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01307/0.6989, allocations: 3.802 MB / 411.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0255/0.7245, allocations: 11.23 MB / 422.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.7245, allocations: 0 / 422.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.7246, allocations: 0 / 422.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005377/0.7251, allocations: 0 / 422.5 MB, free: 8.902 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.04443/0.7696, allocations: 8.502 MB / 431 MB, free: 480 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.604e-05/0.7697, allocations: 12.02 kB / 431 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005216/0.7749, allocations: 1.082 MB / 432.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2646/1.04, allocations: 12.9 MB / 445 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02544/1.065, allocations: 6.491 MB / 451.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006604/1.066, allocations: 364.4 kB / 451.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003514/1.069, allocations: 0.5195 MB / 452.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05594/1.125, allocations: 16.1 MB / 468.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00065/1.126, allocations: 83.2 kB / 468.5 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003055/1.129, allocations: 236.6 kB / 468.8 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008397/1.137, allocations: 2.923 MB / 471.7 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05274/1.19, allocations: 13.44 MB / 485.1 MB, free: 9.621 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5069/1.697, allocations: 64.17 MB / 0.5364 GB, free: 105.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0396/1.737, allocations: 7.756 MB / 0.544 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00852/1.745, allocations: 4.134 MB / 0.548 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0463/1.792, allocations: 18.72 MB / 0.5663 GB, free: 95.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.151e-05/1.792, allocations: 62.09 kB / 0.5664 GB, free: 95.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 9.408e-06/1.792, allocations: 0 / 0.5664 GB, free: 95.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=370): time 0.2967/2.089, allocations: 50.69 MB / 0.6159 GB, free: 52.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/2.089, allocations: 269.9 kB / 0.6161 GB, free: 52.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01974/2.109, allocations: 6.083 MB / 0.6221 GB, free: 46.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002313/2.111, allocations: 81.7 kB / 0.6221 GB, free: 46.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005985/2.117, allocations: 4.745 MB / 0.6268 GB, free: 41.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002901/2.12, allocations: 1.362 MB / 0.6281 GB, free: 40.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008068/2.128, allocations: 1.821 MB / 0.6299 GB, free: 38.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.461e-05/2.128, allocations: 305.1 kB / 0.6302 GB, free: 38.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009502/2.138, allocations: 3.926 MB / 0.634 GB, free: 34.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01345/2.151, allocations: 9.157 MB / 0.643 GB, free: 22.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02424/2.176, allocations: 14.14 MB / 0.6568 GB, free: 5.965 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002262/2.176, allocations: 52 kB / 0.6568 GB, free: 5.914 MB / 446.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05674/2.233, allocations: 16.36 MB / 0.6728 GB, free: 5.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002458/2.233, allocations: 87.94 kB / 0.6729 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004076/2.234, allocations: 187.9 kB / 0.6731 GB, free: 5.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/2.254, allocations: 4.052 MB / 0.677 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/2.266, allocations: 2.059 MB / 0.679 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0568/2.323, allocations: 23.51 MB / 0.702 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01531/2.338, allocations: 0.4993 MB / 0.7025 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003089/2.342, allocations: 0.5349 MB / 0.703 GB, free: 6.289 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (4,48,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01294/2.355, allocations: 3.127 MB / 0.706 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002584/2.357, allocations: 0.5746 MB / 0.7066 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4263/2.783, allocations: 9.812 MB / 0.7162 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/2.784, allocations: 42.89 kB / 0.7162 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-05/2.784, allocations: 17.31 kB / 0.7162 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001251/2.784, allocations: 18.03 kB / 0.7163 GB, free: 174.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08255/2.866, allocations: 19.55 MB / 0.7354 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/2.867, allocations: 0 / 0.7354 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005182/2.872, allocations: 0.533 MB / 0.7359 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02057/2.892, allocations: 3.644 MB / 0.7394 GB, free: 167.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001311/2.894, allocations: 62.33 kB / 0.7395 GB, free: 167.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04801/2.942, allocations: 21.4 MB / 0.7604 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/2.942, allocations: 0 / 0.7604 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04653/2.989, allocations: 14.47 MB / 0.7745 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002913/2.991, allocations: 0.5929 MB / 0.7751 GB, free: 139 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00293/2.994, allocations: 57.97 kB / 0.7751 GB, free: 139 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006716/3.001, allocations: 199.7 kB / 0.7753 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/3.003, allocations: 226.1 kB / 0.7756 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001038/3.004, allocations: 95.98 kB / 0.7756 GB, free: 138.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01159/3.016, allocations: 3.799 MB / 0.7794 GB, free: 134.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.91e-07/3.016, allocations: 3.906 kB / 0.7794 GB, free: 134.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01659/3.032, allocations: 1.854 MB / 0.7812 GB, free: 132.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04767/3.08, allocations: 15.24 MB / 0.7961 GB, free: 117.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.04186/3.122, allocations: 14.79 MB / 0.8105 GB, free: 103 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/3.122, allocations: 2.344 kB / 0.8105 GB, free: 103 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009732/3.132, allocations: 3.937 MB / 0.8143 GB, free: 99.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0118/3.144, allocations: 0.8067 MB / 0.8151 GB, free: 98.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5985/3.742, allocations: 99.81 MB / 0.9126 GB, free: 166.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01692/3.759, allocations: 4.864 MB / 0.9174 GB, free: 165.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01624/3.776, allocations: 2.794 MB / 0.9201 GB, free: 165.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01064/3.786, allocations: 3.244 MB / 0.9233 GB, free: 164 MB / 494.1 MB Notification: Performance of SimCode: time 1.893e-06/3.787, allocations: 0 / 0.9233 GB, free: 164 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3395/4.126, allocations: 138.9 MB / 1.059 GB, free: 40.15 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.9/28.03, allocations: 18.55 kB / 1.059 GB, free: 40.14 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches