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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 115.5 kB / 17.69 MB, free: 5.434 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.001894/0.001894, allocations: 188 kB / 18.63 MB, free: 4.504 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.274/1.274, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 43.78 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1037, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01694/0.1207, allocations: 17.28 MB / 368.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1759/0.2966, allocations: 5.461 MB / 374.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003303/0.3, allocations: 119 kB / 374.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007925/0.308, allocations: 4.373 MB / 378.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006934/0.3149, allocations: 2.748 MB / 381.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003327/0.3183, allocations: 1.46 MB / 383 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01282/0.3311, allocations: 8.47 MB / 391.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006588/0.3378, allocations: 5.382 MB / 396.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004063/0.3419, allocations: 2.674 MB / 399.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.3472, allocations: 3.837 MB / 403.3 MB, free: 13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.3483, allocations: 0.5391 MB / 403.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.3515, allocations: 1.625 MB / 405.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003138/0.3547, allocations: 3.339 MB / 408.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004935/0.3596, allocations: 3.654 MB / 412.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.3711, allocations: 11.21 MB / 423.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3711, allocations: 0 / 423.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3711, allocations: 0 / 423.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002959/0.3714, allocations: 4 kB / 423.7 MB, free: 8.938 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.01926/0.3907, allocations: 8.206 MB / 431.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3907, allocations: 12.03 kB / 431.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02652/0.4173, allocations: 3.677 MB / 435.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.4294, allocations: 5.392 MB / 441 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003106/0.4297, allocations: 379.2 kB / 441.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.4316, allocations: 0.513 MB / 441.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03029/0.4619, allocations: 16.24 MB / 458.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002522/0.4622, allocations: 75.36 kB / 458.2 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008728/0.4631, allocations: 241.4 kB / 458.4 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004479/0.4676, allocations: 2.926 MB / 461.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/0.4964, allocations: 13.72 MB / 475 MB, free: 4.863 MB / 382.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.08024/0.5767, allocations: 64.53 MB / 0.5269 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1783/0.755, allocations: 7.855 MB / 0.5346 GB, free: 143.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006716/0.7618, allocations: 4.351 MB / 0.5388 GB, free: 141.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02883/0.7907, allocations: 19.37 MB / 0.5578 GB, free: 131.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.7907, allocations: 62.84 kB / 0.5578 GB, free: 131.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.12e-06/0.7908, allocations: 0 / 0.5578 GB, free: 131.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1499/0.9407, allocations: 49.81 MB / 0.6065 GB, free: 90.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.9409, allocations: 269.8 kB / 0.6067 GB, free: 90.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/0.9475, allocations: 6.05 MB / 0.6126 GB, free: 83.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008089/0.9484, allocations: 85.69 kB / 0.6127 GB, free: 83.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.9504, allocations: 4.667 MB / 0.6173 GB, free: 79.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/0.9516, allocations: 1.366 MB / 0.6186 GB, free: 77.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/0.9536, allocations: 1.916 MB / 0.6205 GB, free: 75.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.63e-05/0.9537, allocations: 305.1 kB / 0.6208 GB, free: 75.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004747/0.9584, allocations: 4.22 MB / 0.6249 GB, free: 71.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007433/0.9659, allocations: 9.456 MB / 0.6341 GB, free: 59.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01427/0.9802, allocations: 14.63 MB / 0.6484 GB, free: 42.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/0.9804, allocations: 52 kB / 0.6485 GB, free: 42.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03461/1.015, allocations: 17.55 MB / 0.6656 GB, free: 24.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002073/1.015, allocations: 84.95 kB / 0.6657 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003234/1.016, allocations: 180 kB / 0.6659 GB, free: 24.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01393/1.03, allocations: 4.543 MB / 0.6703 GB, free: 19.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007192/1.037, allocations: 2.133 MB / 0.6724 GB, free: 17.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2443/1.281, allocations: 25.37 MB / 0.6972 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009837/1.291, allocations: 0.5271 MB / 0.6977 GB, free: 135.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00259/1.294, allocations: 0.5416 MB / 0.6982 GB, free: 135.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1136): * Single equations (assignments): 1131 * 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%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007448/1.301, allocations: 3.117 MB / 0.7012 GB, free: 134.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002118/1.303, allocations: 0.5671 MB / 0.7018 GB, free: 134.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02405/1.327, allocations: 10.71 MB / 0.7122 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-05/1.327, allocations: 39.38 kB / 0.7123 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.198e-05/1.327, allocations: 15.69 kB / 0.7123 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.925e-05/1.328, allocations: 22.84 kB / 0.7123 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03778/1.365, allocations: 20.37 MB / 0.7322 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.103e-05/1.365, allocations: 0 / 0.7322 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002812/1.368, allocations: 0.5352 MB / 0.7327 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01256/1.381, allocations: 4.185 MB / 0.7368 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009277/1.382, allocations: 67.11 kB / 0.7369 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02735/1.409, allocations: 23.12 MB / 0.7595 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.409, allocations: 7.25 kB / 0.7595 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02454/1.434, allocations: 15.63 MB / 0.7747 GB, free: 87.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001991/1.436, allocations: 0.5874 MB / 0.7753 GB, free: 87.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001794/1.438, allocations: 63.44 kB / 0.7754 GB, free: 87.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003902/1.442, allocations: 215.7 kB / 0.7756 GB, free: 86.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/1.443, allocations: 234 kB / 0.7758 GB, free: 86.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002878/1.443, allocations: 95.98 kB / 0.7759 GB, free: 86.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004695/1.448, allocations: 3.774 MB / 0.7796 GB, free: 82.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.5e-07/1.448, allocations: 0 / 0.7796 GB, free: 82.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00914/1.457, allocations: 1.934 MB / 0.7815 GB, free: 80.89 MB / 462.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 (272): * Single equations (assignments): 267 * 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.001005/1.458, allocations: 211.9 kB / 0.7817 GB, free: 80.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01435/1.472, allocations: 10.53 MB / 0.7919 GB, free: 70.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/1.472, allocations: 7.75 kB / 0.792 GB, free: 70.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005257/1.478, allocations: 4.11 MB / 0.796 GB, free: 66.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004061/1.482, allocations: 0.7859 MB / 0.7967 GB, free: 65.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/1.504, allocations: 16.22 MB / 0.8126 GB, free: 49.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004333/1.508, allocations: 4.863 MB / 0.8173 GB, free: 44.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005801/1.514, allocations: 2.789 MB / 0.82 GB, free: 41.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.515, allocations: 379.4 kB / 0.8204 GB, free: 41.08 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/1.515, allocations: 0 / 0.8204 GB, free: 41.08 MB / 462.1 MB Notification: Performance of Templates: time 0.3143/1.83, allocations: 77.05 MB / 0.8957 GB, free: 124.5 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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.mat","/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