Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001941/0.001941, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002368/0.002368, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.588/1.588, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.002211, allocations: 63.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3089, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02264/0.3315, allocations: 17.23 MB / 426 MB, free: 216 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01498/0.3466, allocations: 5.482 MB / 431.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004533/0.3511, allocations: 115.6 kB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01015/0.3614, allocations: 4.353 MB / 436 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.3719, allocations: 2.707 MB / 438.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005/0.377, allocations: 1.459 MB / 440.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01781/0.3948, allocations: 8.663 MB / 448.8 MB, free: 9.371 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01084/0.4057, allocations: 5.363 MB / 454.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006688/0.4124, allocations: 2.66 MB / 456.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007977/0.4204, allocations: 3.828 MB / 460.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00373/0.4243, allocations: 0.5352 MB / 461.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005623/0.4299, allocations: 1.615 MB / 462.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006065/0.436, allocations: 3.289 MB / 466.1 MB, free: 7.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008214/0.4443, allocations: 3.775 MB / 469.8 MB, free: 4.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/0.4652, allocations: 11.55 MB / 481.4 MB, free: 8.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4652, allocations: 0 / 481.4 MB, free: 8.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4652, allocations: 0 / 481.4 MB, free: 8.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000473/0.4657, allocations: 0 / 481.4 MB, free: 8.586 MB / 398.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.02918/0.4949, allocations: 8.686 MB / 490.1 MB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.495, allocations: 12.03 kB / 490.1 MB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004931/0.4999, allocations: 1.079 MB / 491.2 MB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1576/0.6575, allocations: 12.94 MB / 0.4923 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01667/0.6742, allocations: 6.198 MB / 0.4984 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004714/0.6748, allocations: 373.5 kB / 0.4987 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/0.6771, allocations: 0.5229 MB / 0.4992 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/0.7192, allocations: 16.11 MB / 0.515 GB, free: 9.391 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004733/0.7197, allocations: 75.45 kB / 0.515 GB, free: 9.316 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002869/0.7226, allocations: 235.8 kB / 0.5153 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006297/0.7289, allocations: 2.93 MB / 0.5181 GB, free: 6.152 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03584/0.7648, allocations: 13.44 MB / 0.5312 GB, free: 8.684 MB / 462.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.3255/1.09, allocations: 64.01 MB / 0.5937 GB, free: 73.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/1.111, allocations: 7.762 MB / 0.6013 GB, free: 66.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00461/1.115, allocations: 4.133 MB / 0.6054 GB, free: 62.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02453/1.14, allocations: 18.83 MB / 0.6238 GB, free: 43.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/1.14, allocations: 64.5 kB / 0.6238 GB, free: 43.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 5.811e-06/1.14, allocations: 0 / 0.6238 GB, free: 43.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.1732/1.313, allocations: 51.06 MB / 0.6737 GB, free: 8.355 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000574/1.314, allocations: 269.8 kB / 0.6739 GB, free: 8.035 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/1.327, allocations: 6.088 MB / 0.6799 GB, free: 1.945 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009561/1.328, allocations: 77.7 kB / 0.68 GB, free: 1.863 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005353/1.333, allocations: 4.925 MB / 0.6848 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002861/1.336, allocations: 1.424 MB / 0.6862 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00389/1.34, allocations: 1.841 MB / 0.688 GB, free: 9.695 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/1.34, allocations: 301.1 kB / 0.6882 GB, free: 9.398 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008209/1.348, allocations: 3.934 MB / 0.6921 GB, free: 5.457 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01389/1.362, allocations: 9.165 MB / 0.701 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02096/1.383, allocations: 14.16 MB / 0.7149 GB, free: 8.977 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001397/1.383, allocations: 52 kB / 0.7149 GB, free: 8.926 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0423/1.426, allocations: 16.42 MB / 0.7309 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002846/1.426, allocations: 84.97 kB / 0.731 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003843/1.426, allocations: 183.9 kB / 0.7312 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01498/1.441, allocations: 4.029 MB / 0.7351 GB, free: 4.156 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008468/1.45, allocations: 2.066 MB / 0.7372 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2892/1.739, allocations: 23.51 MB / 0.7601 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009894/1.749, allocations: 0.5045 MB / 0.7606 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001736/1.751, allocations: 0.5263 MB / 0.7611 GB, free: 170.5 MB / 0.5294 GB 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.006634/1.757, allocations: 3.125 MB / 0.7642 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/1.759, allocations: 0.6032 MB / 0.7648 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01925/1.778, allocations: 9.828 MB / 0.7744 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.678e-05/1.778, allocations: 45.78 kB / 0.7744 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.929e-05/1.778, allocations: 15.16 kB / 0.7744 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.861e-05/1.778, allocations: 18.86 kB / 0.7744 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03672/1.815, allocations: 19.42 MB / 0.7934 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/1.815, allocations: 3.875 kB / 0.7934 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002858/1.818, allocations: 0.5421 MB / 0.7939 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/1.829, allocations: 3.618 MB / 0.7975 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005953/1.83, allocations: 72.64 kB / 0.7975 GB, free: 144 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02571/1.855, allocations: 21.37 MB / 0.8184 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.855, allocations: 0 / 0.8184 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02411/1.88, allocations: 14.53 MB / 0.8326 GB, free: 108.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/1.882, allocations: 0.6155 MB / 0.8332 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002485/1.884, allocations: 59.83 kB / 0.8332 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005895/1.89, allocations: 206.4 kB / 0.8334 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001847/1.892, allocations: 222.2 kB / 0.8337 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007296/1.893, allocations: 95.98 kB / 0.8337 GB, free: 107 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01051/1.903, allocations: 3.795 MB / 0.8375 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.71e-07/1.903, allocations: 0 / 0.8375 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01608/1.919, allocations: 1.822 MB / 0.8392 GB, free: 101.4 MB / 0.5294 GB 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.049/1.968, allocations: 15.3 MB / 0.8542 GB, free: 86.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02469/1.993, allocations: 10.01 MB / 0.864 GB, free: 76.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.993, allocations: 0 / 0.864 GB, free: 76.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01052/2.004, allocations: 3.955 MB / 0.8678 GB, free: 72.11 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009603/2.013, allocations: 0.8034 MB / 0.8686 GB, free: 71.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4237/2.437, allocations: 83.52 MB / 0.9502 GB, free: 190.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007008/2.444, allocations: 4.859 MB / 0.9549 GB, free: 189.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006927/2.451, allocations: 2.794 MB / 0.9576 GB, free: 189.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004779/2.456, allocations: 3.244 MB / 0.9608 GB, free: 187.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/2.456, allocations: 0 / 0.9608 GB, free: 187.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2219/2.678, allocations: 133.4 MB / 1.091 GB, free: 60.69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 48.14/50.82, allocations: 11.38 kB / 1.091 GB, free: 60.68 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches