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.001145/0.001145, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 68.39 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09168, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2029/0.2946, allocations: 17.24 MB / 374.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.3056, allocations: 5.486 MB / 380.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004445/0.3101, allocations: 118.9 kB / 380.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008765/0.319, allocations: 4.354 MB / 384.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007937/0.3269, allocations: 2.703 MB / 387.5 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003573/0.3305, allocations: 1.471 MB / 388.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.3416, allocations: 8.646 MB / 397.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006616/0.3483, allocations: 5.376 MB / 403 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005011/0.3533, allocations: 2.656 MB / 405.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00567/0.359, allocations: 3.832 MB / 409.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002184/0.3612, allocations: 0.5352 MB / 410 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00454/0.3658, allocations: 1.615 MB / 411.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004552/0.3703, allocations: 3.285 MB / 414.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007899/0.3783, allocations: 3.779 MB / 418.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01671/0.395, allocations: 11.15 MB / 429.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3951, allocations: 0 / 429.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3951, allocations: 0 / 429.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004489/0.3955, allocations: 0 / 429.8 MB, free: 2.949 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.02582/0.4214, allocations: 8.484 MB / 438.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.435e-05/0.4215, allocations: 12.03 kB / 438.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004353/0.4258, allocations: 1.083 MB / 439.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1811/0.607, allocations: 12.9 MB / 452.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0134/0.6204, allocations: 6.059 MB / 458.4 MB, free: 6.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003174/0.6208, allocations: 373.4 kB / 458.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001877/0.6226, allocations: 0.5112 MB / 459.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0304/0.6531, allocations: 16.12 MB / 475.4 MB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002935/0.6534, allocations: 71.38 kB / 475.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/0.6549, allocations: 239.8 kB / 475.7 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004788/0.6597, allocations: 2.927 MB / 478.6 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02983/0.6895, allocations: 13.46 MB / 492 MB, free: 3.422 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.2728/0.9624, allocations: 64.16 MB / 0.5432 GB, free: 100.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02449/0.9869, allocations: 7.758 MB / 0.5508 GB, free: 99.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005324/0.9923, allocations: 4.134 MB / 0.5548 GB, free: 98.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0258/1.018, allocations: 18.8 MB / 0.5731 GB, free: 88.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/1.018, allocations: 70.28 kB / 0.5732 GB, free: 88.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 5.26e-06/1.018, allocations: 0 / 0.5732 GB, free: 88.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=370): time 0.1692/1.187, allocations: 50.7 MB / 0.6227 GB, free: 45.22 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/1.187, allocations: 269.8 kB / 0.623 GB, free: 44.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006943/1.194, allocations: 6.072 MB / 0.6289 GB, free: 38.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007126/1.195, allocations: 81.7 kB / 0.629 GB, free: 38.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.197, allocations: 4.744 MB / 0.6336 GB, free: 33.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.198, allocations: 1.358 MB / 0.6349 GB, free: 32.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002071/1.2, allocations: 1.821 MB / 0.6367 GB, free: 30.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.106e-05/1.201, allocations: 305.1 kB / 0.637 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004679/1.205, allocations: 3.926 MB / 0.6409 GB, free: 26.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00655/1.212, allocations: 9.17 MB / 0.6498 GB, free: 14.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01322/1.225, allocations: 14.16 MB / 0.6636 GB, free: 14.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/1.225, allocations: 55.94 kB / 0.6637 GB, free: 14.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03463/1.26, allocations: 16.39 MB / 0.6797 GB, free: 13.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001931/1.26, allocations: 84.19 kB / 0.6798 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002993/1.26, allocations: 184 kB / 0.6799 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01355/1.274, allocations: 4.048 MB / 0.6839 GB, free: 9.508 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007314/1.281, allocations: 2.062 MB / 0.6859 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2737/1.555, allocations: 23.51 MB / 0.7089 GB, free: 164.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0124/1.568, allocations: 0.4981 MB / 0.7094 GB, free: 164.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003189/1.571, allocations: 0.5346 MB / 0.7099 GB, free: 164.3 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.01064/1.581, allocations: 3.121 MB / 0.7129 GB, free: 164.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/1.583, allocations: 0.5723 MB / 0.7135 GB, free: 164.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02332/1.606, allocations: 9.846 MB / 0.7231 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.204e-05/1.606, allocations: 37.88 kB / 0.7231 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.424e-05/1.607, allocations: 17.03 kB / 0.7232 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.297e-05/1.607, allocations: 16.89 kB / 0.7232 GB, free: 162.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03835/1.645, allocations: 19.56 MB / 0.7423 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.509e-05/1.645, allocations: 3.812 kB / 0.7423 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002619/1.648, allocations: 0.5369 MB / 0.7428 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0112/1.659, allocations: 3.633 MB / 0.7463 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006182/1.66, allocations: 62.78 kB / 0.7464 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02661/1.686, allocations: 21.38 MB / 0.7673 GB, free: 139.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.686, allocations: 3.938 kB / 0.7673 GB, free: 139.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/1.712, allocations: 14.5 MB / 0.7814 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.714, allocations: 0.5789 MB / 0.782 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001705/1.715, allocations: 67.92 kB / 0.7821 GB, free: 124.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00357/1.719, allocations: 199.7 kB / 0.7823 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009952/1.72, allocations: 221.9 kB / 0.7825 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004705/1.72, allocations: 100.7 kB / 0.7826 GB, free: 124.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006521/1.727, allocations: 3.795 MB / 0.7863 GB, free: 120.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.727, allocations: 5 kB / 0.7863 GB, free: 120.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008924/1.736, allocations: 1.822 MB / 0.7881 GB, free: 118.6 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.02299/1.759, allocations: 15.26 MB / 0.803 GB, free: 103.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02241/1.781, allocations: 14.8 MB / 0.8174 GB, free: 88.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/1.781, allocations: 5.938 kB / 0.8174 GB, free: 88.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005309/1.787, allocations: 3.953 MB / 0.8213 GB, free: 84.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004336/1.791, allocations: 0.8087 MB / 0.8221 GB, free: 83.83 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2992/2.09, allocations: 99.8 MB / 0.9195 GB, free: 139.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005036/2.095, allocations: 4.854 MB / 0.9243 GB, free: 137.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006787/2.102, allocations: 2.795 MB / 0.927 GB, free: 137.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003501/2.106, allocations: 3.246 MB / 0.9302 GB, free: 135.2 MB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/2.106, allocations: 0 / 0.9302 GB, free: 135.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3525/2.458, allocations: 138.7 MB / 1.066 GB, free: 147.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/15.4, allocations: 8.625 kB / 1.066 GB, free: 147.1 MB / 494.1 MB (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.0.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