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.001072/0.001072, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001043/0.001043, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 59.94 kB / 306.9 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09222, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1808/0.2731, allocations: 17.23 MB / 374.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.2844, allocations: 5.488 MB / 380.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003518/0.288, allocations: 118.3 kB / 380.3 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008351/0.2964, allocations: 4.347 MB / 384.7 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007167/0.3036, allocations: 2.707 MB / 387.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00312/0.3067, allocations: 1.466 MB / 388.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01215/0.3189, allocations: 8.645 MB / 397.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005751/0.3247, allocations: 5.374 MB / 402.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004447/0.3292, allocations: 2.66 MB / 405.5 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00549/0.3347, allocations: 3.825 MB / 409.3 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.3365, allocations: 0.5352 MB / 409.9 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004232/0.3407, allocations: 1.611 MB / 411.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004285/0.345, allocations: 3.312 MB / 414.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006769/0.3518, allocations: 3.627 MB / 418.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01648/0.3683, allocations: 10.8 MB / 429.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.3684, allocations: 0 / 429.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3684, allocations: 3.938 kB / 429.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005417/0.3689, allocations: 0 / 429.2 MB, free: 3.582 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.02185/0.3908, allocations: 8.199 MB / 437.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.3908, allocations: 8.031 kB / 437.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03022/0.421, allocations: 3.673 MB / 441.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.434, allocations: 5.18 MB / 446.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004724/0.4345, allocations: 377.5 kB / 446.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002735/0.4373, allocations: 0.5112 MB / 447.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03234/0.4697, allocations: 16.25 MB / 463.4 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002614/0.4699, allocations: 83.22 kB / 463.5 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001196/0.4712, allocations: 239.8 kB / 463.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004795/0.476, allocations: 2.93 MB / 466.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02909/0.5051, allocations: 13.72 MB / 480.4 MB, free: 15.14 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.2483/0.7534, allocations: 64.8 MB / 0.5324 GB, free: 124.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0232/0.7766, allocations: 7.871 MB / 0.5401 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005115/0.7818, allocations: 4.35 MB / 0.5443 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02296/0.8047, allocations: 19.46 MB / 0.5633 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.8048, allocations: 67.62 kB / 0.5634 GB, free: 113.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.67e-06/0.8048, allocations: 0 / 0.5634 GB, free: 113.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1482/0.953, allocations: 49.84 MB / 0.6121 GB, free: 73.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.9531, allocations: 277.4 kB / 0.6123 GB, free: 73.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006199/0.9593, allocations: 6.042 MB / 0.6182 GB, free: 67.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005421/0.9599, allocations: 81.7 kB / 0.6183 GB, free: 67.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/0.9618, allocations: 4.665 MB / 0.6229 GB, free: 62.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001201/0.963, allocations: 1.374 MB / 0.6242 GB, free: 61.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/0.9651, allocations: 1.908 MB / 0.6261 GB, free: 59.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.9652, allocations: 301.1 kB / 0.6264 GB, free: 59.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004927/0.9701, allocations: 4.235 MB / 0.6305 GB, free: 54.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006568/0.9767, allocations: 9.469 MB / 0.6398 GB, free: 43.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01293/0.9896, allocations: 14.64 MB / 0.6541 GB, free: 25.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.9898, allocations: 52 kB / 0.6541 GB, free: 25.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03189/1.022, allocations: 17.56 MB / 0.6713 GB, free: 8.258 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/1.022, allocations: 84 kB / 0.6713 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/1.022, allocations: 180 kB / 0.6715 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01346/1.036, allocations: 4.563 MB / 0.676 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007067/1.043, allocations: 2.129 MB / 0.678 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.227/1.27, allocations: 25.39 MB / 0.7028 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007642/1.277, allocations: 0.5286 MB / 0.7033 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001872/1.279, allocations: 0.5383 MB / 0.7039 GB, free: 146.2 MB / 478.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.007486/1.287, allocations: 3.118 MB / 0.7069 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/1.288, allocations: 0.5679 MB / 0.7075 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0223/1.311, allocations: 10.72 MB / 0.7179 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-05/1.311, allocations: 38.88 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.812e-05/1.311, allocations: 23.19 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.219e-05/1.311, allocations: 17.91 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03697/1.348, allocations: 20.51 MB / 0.7381 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.912e-05/1.348, allocations: 0.625 kB / 0.7381 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002849/1.351, allocations: 0.547 MB / 0.7386 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/1.363, allocations: 4.184 MB / 0.7427 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008382/1.364, allocations: 63.67 kB / 0.7427 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02757/1.392, allocations: 23.13 MB / 0.7653 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.392, allocations: 4 kB / 0.7653 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02639/1.418, allocations: 15.66 MB / 0.7806 GB, free: 97.63 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/1.42, allocations: 0.5891 MB / 0.7812 GB, free: 97.15 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/1.421, allocations: 58.48 kB / 0.7813 GB, free: 97.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003578/1.425, allocations: 227 kB / 0.7815 GB, free: 96.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009867/1.426, allocations: 226.1 kB / 0.7817 GB, free: 96.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004368/1.426, allocations: 91.98 kB / 0.7818 GB, free: 96.56 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005994/1.432, allocations: 3.765 MB / 0.7854 GB, free: 92.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.432, allocations: 0 / 0.7854 GB, free: 92.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008601/1.441, allocations: 1.909 MB / 0.7873 GB, free: 90.89 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 (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.001049/1.442, allocations: 219.1 kB / 0.7875 GB, free: 90.68 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02403/1.466, allocations: 15.43 MB / 0.8026 GB, free: 75.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/1.466, allocations: 4 kB / 0.8026 GB, free: 75.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005628/1.472, allocations: 4.145 MB / 0.8066 GB, free: 71.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005887/1.477, allocations: 0.7663 MB / 0.8074 GB, free: 70.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02643/1.504, allocations: 16.41 MB / 0.8234 GB, free: 54.04 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006982/1.511, allocations: 4.855 MB / 0.8282 GB, free: 49.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007852/1.519, allocations: 2.785 MB / 0.8309 GB, free: 46.36 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/1.52, allocations: 387.4 kB / 0.8312 GB, free: 45.98 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/1.52, allocations: 0 / 0.8312 GB, free: 45.98 MB / 478.1 MB Notification: Performance of Templates: time 0.2842/1.805, allocations: 84.45 MB / 0.9137 GB, free: 125.7 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