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: 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001673/0.001679, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001915/0.001915, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 60.16 kB / 306.5 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1188, allocations: 50.54 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.235/0.3538, allocations: 72.69 MB / 429.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03115/0.385, allocations: 14.4 MB / 444.1 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01448/0.3995, allocations: 331.1 kB / 444.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007921/0.4075, allocations: 4.184 MB / 448.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006915/0.4145, allocations: 2.526 MB / 451.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002985/0.4175, allocations: 1.377 MB / 452.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01167/0.4291, allocations: 9.019 MB / 461.5 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007987/0.4372, allocations: 5.663 MB / 467.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004242/0.4415, allocations: 2.722 MB / 469.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005678/0.4472, allocations: 4.249 MB / 474.1 MB, free: 6.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.4486, allocations: 0.5352 MB / 474.7 MB, free: 5.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.4519, allocations: 1.639 MB / 476.3 MB, free: 3.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003188/0.4551, allocations: 3.355 MB / 479.7 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003956/0.4591, allocations: 3.655 MB / 483.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.4705, allocations: 10.87 MB / 494.2 MB, free: 1.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4705, allocations: 4 kB / 494.2 MB, free: 1.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4705, allocations: 0 / 494.2 MB, free: 1.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002678/0.4708, allocations: 0 / 494.2 MB, free: 1.992 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.01761/0.4884, allocations: 8.191 MB / 0.4906 GB, free: 9.715 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4885, allocations: 8.031 kB / 0.4906 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03185/0.5203, allocations: 3.681 MB / 0.4942 GB, free: 6.012 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.5329, allocations: 5.169 MB / 0.4993 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003187/0.5332, allocations: 369.5 kB / 0.4996 GB, free: 408 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001786/0.535, allocations: 0.5228 MB / 0.5001 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03083/0.5659, allocations: 16.25 MB / 0.516 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002207/0.5661, allocations: 87.2 kB / 0.5161 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007189/0.5669, allocations: 231.8 kB / 0.5163 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004646/0.5715, allocations: 2.927 MB / 0.5192 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2067/0.7782, allocations: 13.72 MB / 0.5326 GB, free: 138.9 MB / 446.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.06988/0.8482, allocations: 64.83 MB / 0.5959 GB, free: 92.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02035/0.8685, allocations: 7.869 MB / 0.6036 GB, free: 85.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004889/0.8735, allocations: 4.345 MB / 0.6078 GB, free: 81.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02212/0.8956, allocations: 19.46 MB / 0.6268 GB, free: 61.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.8957, allocations: 64.56 kB / 0.6269 GB, free: 60.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.062e-06/0.8957, allocations: 0 / 0.6269 GB, free: 60.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1524/1.048, allocations: 49.84 MB / 0.6755 GB, free: 11.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/1.048, allocations: 273.8 kB / 0.6758 GB, free: 10.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/1.055, allocations: 6.034 MB / 0.6817 GB, free: 4.641 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000612/1.055, allocations: 93.2 kB / 0.6818 GB, free: 4.547 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001887/1.057, allocations: 4.66 MB / 0.6863 GB, free: 15.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001476/1.059, allocations: 1.372 MB / 0.6877 GB, free: 14.47 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002502/1.061, allocations: 1.916 MB / 0.6895 GB, free: 12.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.994e-05/1.061, allocations: 301.1 kB / 0.6898 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005831/1.067, allocations: 4.227 MB / 0.6939 GB, free: 8.004 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1878/1.255, allocations: 9.462 MB / 0.7032 GB, free: 141.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0166/1.272, allocations: 14.64 MB / 0.7175 GB, free: 131.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002718/1.272, allocations: 51.53 kB / 0.7175 GB, free: 131.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03838/1.31, allocations: 17.56 MB / 0.7347 GB, free: 126.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/1.311, allocations: 81.72 kB / 0.7348 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002354/1.311, allocations: 181.1 kB / 0.7349 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01362/1.324, allocations: 4.559 MB / 0.7394 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007259/1.332, allocations: 2.136 MB / 0.7415 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02972/1.361, allocations: 25.39 MB / 0.7663 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008468/1.37, allocations: 0.5203 MB / 0.7668 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001615/1.372, allocations: 0.5399 MB / 0.7673 GB, free: 101.6 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.004689/1.376, allocations: 3.111 MB / 0.7703 GB, free: 98.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/1.377, allocations: 0.5662 MB / 0.7709 GB, free: 98.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01933/1.397, allocations: 10.72 MB / 0.7814 GB, free: 87.53 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-05/1.397, allocations: 44 kB / 0.7814 GB, free: 87.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.91e-05/1.397, allocations: 18.95 kB / 0.7814 GB, free: 87.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-05/1.397, allocations: 19.92 kB / 0.7814 GB, free: 87.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03539/1.432, allocations: 20.53 MB / 0.8015 GB, free: 66.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/1.432, allocations: 9.078 kB / 0.8015 GB, free: 66.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.435, allocations: 0.5344 MB / 0.802 GB, free: 66.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0126/1.448, allocations: 4.2 MB / 0.8061 GB, free: 62.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006123/1.449, allocations: 63.98 kB / 0.8062 GB, free: 62.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02679/1.475, allocations: 23.12 MB / 0.8288 GB, free: 38.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.475, allocations: 7.938 kB / 0.8288 GB, free: 38.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02483/1.5, allocations: 15.65 MB / 0.844 GB, free: 23.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/1.502, allocations: 0.5888 MB / 0.8446 GB, free: 22.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.503, allocations: 59.52 kB / 0.8447 GB, free: 22.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/1.507, allocations: 219.7 kB / 0.8449 GB, free: 22.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009282/1.508, allocations: 230.1 kB / 0.8451 GB, free: 22.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002766/1.508, allocations: 98.17 kB / 0.8452 GB, free: 21.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004528/1.512, allocations: 3.776 MB / 0.8489 GB, free: 18.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.512, allocations: 0 / 0.8489 GB, free: 18.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0069/1.519, allocations: 1.897 MB / 0.8507 GB, free: 16.26 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.000581/1.52, allocations: 223.6 kB / 0.851 GB, free: 16.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02367/1.544, allocations: 15.44 MB / 0.866 GB, free: 0.625 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.544, allocations: 4.938 kB / 0.866 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1737/1.717, allocations: 4.124 MB / 0.8701 GB, free: 156.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004686/1.722, allocations: 0.7726 MB / 0.8708 GB, free: 156.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/1.752, allocations: 19.63 MB / 0.89 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005974/1.758, allocations: 4.858 MB / 0.8947 GB, free: 147 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00631/1.764, allocations: 2.788 MB / 0.8975 GB, free: 146.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/1.766, allocations: 382.8 kB / 0.8978 GB, free: 146.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.603e-06/1.766, allocations: 0 / 0.8978 GB, free: 146.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1134/1.879, allocations: 84.43 MB / 0.9803 GB, free: 71.09 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/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