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.001122/0.001122, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001244/0.001244, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.334/1.334, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.000321, allocations: 10.44 kB / 300.7 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 50.42 MB / 351.1 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.05472/0.1552, allocations: 62.62 MB / 413.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.206/0.3612, allocations: 14.64 MB / 428.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009128/0.3704, allocations: 322.4 kB / 428.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009087/0.3795, allocations: 3.09 MB / 431.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0254/0.4049, allocations: 8.927 MB / 440.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004943/0.4099, allocations: 1.267 MB / 442 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0692/0.4791, allocations: 50.12 MB / 492.1 MB, free: 8.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009829/0.489, allocations: 6.334 MB / 498.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003973/0.493, allocations: 1.851 MB / 0.4886 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003926/0.4969, allocations: 2.648 MB / 0.4912 GB, free: 444 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.498, allocations: 249.8 kB / 0.4914 GB, free: 196 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002798/0.5008, allocations: 1.177 MB / 0.4925 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002697/0.5036, allocations: 2.762 MB / 0.4952 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.5051, allocations: 1.313 MB / 0.4965 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008533/0.5136, allocations: 8.844 MB / 0.5052 GB, free: 5.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.5136, allocations: 0 / 0.5052 GB, free: 5.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5136, allocations: 0 / 0.5052 GB, free: 5.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000286/0.5139, allocations: 0 / 0.5052 GB, free: 5.094 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.01702/0.5309, allocations: 7.336 MB / 0.5123 GB, free: 14.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.531, allocations: 12.03 kB / 0.5123 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1747/0.7057, allocations: 15.1 MB / 0.5271 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/0.7196, allocations: 5.573 MB / 0.5325 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003464/0.72, allocations: 374.1 kB / 0.5329 GB, free: 11.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001977/0.722, allocations: 0.5108 MB / 0.5334 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03159/0.7536, allocations: 16.35 MB / 0.5493 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002199/0.7538, allocations: 73.03 kB / 0.5494 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006527/0.7545, allocations: 243 kB / 0.5496 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004451/0.759, allocations: 2.928 MB / 0.5525 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02881/0.7878, allocations: 13.69 MB / 0.5659 GB, free: 14.98 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.2442/1.032, allocations: 64.45 MB / 0.6288 GB, free: 136.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02063/1.053, allocations: 7.866 MB / 0.6365 GB, free: 135.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/1.078, allocations: 18.9 MB / 0.655 GB, free: 126.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/1.078, allocations: 62.41 kB / 0.655 GB, free: 126.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=287): time 4.939e-06/1.078, allocations: 3.812 kB / 0.655 GB, free: 126.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=370): time 0.1577/1.235, allocations: 51.62 MB / 0.7054 GB, free: 77.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/1.236, allocations: 273.5 kB / 0.7057 GB, free: 77.58 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007885/1.243, allocations: 6.505 MB / 0.712 GB, free: 71.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009575/1.244, allocations: 81.7 kB / 0.7121 GB, free: 70.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002468/1.247, allocations: 4.748 MB / 0.7168 GB, free: 66.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/1.248, allocations: 1.356 MB / 0.7181 GB, free: 64.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004905/1.249, allocations: 195.7 kB / 0.7183 GB, free: 64.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003543/1.249, allocations: 0.6946 MB / 0.7189 GB, free: 64 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004823/1.254, allocations: 3.887 MB / 0.7227 GB, free: 60.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006603/1.261, allocations: 9.093 MB / 0.7316 GB, free: 48.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006888/1.268, allocations: 5.754 MB / 0.7372 GB, free: 42.86 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-05/1.268, allocations: 52 kB / 0.7373 GB, free: 42.81 MB / 478.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02745/1.295, allocations: 16.33 MB / 0.7532 GB, free: 26.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.882e-05/1.295, allocations: 88.03 kB / 0.7533 GB, free: 26.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/1.295, allocations: 184.8 kB / 0.7535 GB, free: 26.17 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/1.307, allocations: 4.103 MB / 0.7575 GB, free: 22.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006579/1.314, allocations: 2.059 MB / 0.7595 GB, free: 19.99 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2287/1.543, allocations: 22.73 MB / 0.7817 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007283/1.55, allocations: 0.4994 MB / 0.7822 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001494/1.551, allocations: 0.5295 MB / 0.7827 GB, free: 153.1 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006051/1.557, allocations: 3.119 MB / 0.7858 GB, free: 153 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.559, allocations: 0.5701 MB / 0.7863 GB, free: 153 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0208/1.579, allocations: 9.849 MB / 0.7959 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.064e-05/1.579, allocations: 38.66 kB / 0.796 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.061e-05/1.579, allocations: 14.5 kB / 0.796 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.507e-05/1.58, allocations: 18.7 kB / 0.796 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03558/1.615, allocations: 19.61 MB / 0.8152 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/1.615, allocations: 0 / 0.8152 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002604/1.618, allocations: 0.5323 MB / 0.8157 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01098/1.629, allocations: 3.658 MB / 0.8192 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004029/1.629, allocations: 64.3 kB / 0.8193 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02403/1.653, allocations: 20.67 MB / 0.8395 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.653, allocations: 4 kB / 0.8395 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/1.676, allocations: 14.58 MB / 0.8537 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.678, allocations: 0.6107 MB / 0.8543 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002458/1.68, allocations: 56 kB / 0.8544 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003653/1.684, allocations: 208.5 kB / 0.8546 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007158/1.684, allocations: 226.2 kB / 0.8548 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.685, allocations: 99.92 kB / 0.8549 GB, free: 110.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005438/1.69, allocations: 4.135 MB / 0.8589 GB, free: 106.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.69, allocations: 0 / 0.8589 GB, free: 106.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008105/1.698, allocations: 1.88 MB / 0.8608 GB, free: 104.5 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007766/1.699, allocations: 239.3 kB / 0.861 GB, free: 104.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01341/1.712, allocations: 9.935 MB / 0.8707 GB, free: 94.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/1.712, allocations: 7.688 kB / 0.8707 GB, free: 94.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004825/1.717, allocations: 3.925 MB / 0.8745 GB, free: 90.39 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00347/1.721, allocations: 0.7213 MB / 0.8752 GB, free: 89.69 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02353/1.744, allocations: 18.57 MB / 0.8934 GB, free: 71.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004359/1.749, allocations: 5.003 MB / 0.8983 GB, free: 66.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006263/1.755, allocations: 2.811 MB / 0.901 GB, free: 63.42 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.756, allocations: 387.4 kB / 0.9014 GB, free: 63.04 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/1.756, allocations: 0 / 0.9014 GB, free: 63.04 MB / 478.1 MB Notification: Performance of Templates: time 0.3116/2.068, allocations: 76.96 MB / 0.9765 GB, free: 135.1 MB / 478.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches