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.0007699/0.0007699, allocations: 90.62 kB / 17.31 MB, free: 5.59 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.0008292/0.0008292, allocations: 176.6 kB / 18.21 MB, free: 5.191 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.099/1.099, allocations: 223.3 MB / 242.3 MB, free: 14.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001997/0.0001996, allocations: 7.984 kB / 302.1 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06918/0.0694, allocations: 50.4 MB / 352.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1708/0.2402, allocations: 71.39 MB / 423.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02533/0.2656, allocations: 14.62 MB / 438.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006845/0.2725, allocations: 323.1 kB / 438.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.2737, allocations: 0.6295 MB / 439.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004255/0.2779, allocations: 2.605 MB / 442.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.2799, allocations: 1.354 MB / 443.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00949/0.2894, allocations: 11.88 MB / 455.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007221/0.2966, allocations: 7.106 MB / 462.4 MB, free: 6.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002067/0.2987, allocations: 2.078 MB / 464.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003379/0.3021, allocations: 3.683 MB / 468.2 MB, free: 284 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004212/0.3025, allocations: 248 kB / 468.4 MB, free: 36 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.3045, allocations: 1.416 MB / 469.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002089/0.3066, allocations: 3.023 MB / 472.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002242/0.3089, allocations: 3.281 MB / 476.1 MB, free: 8.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005951/0.3148, allocations: 8.53 MB / 484.7 MB, free: 15.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.3148, allocations: 4 kB / 484.7 MB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3149, allocations: 0 / 484.7 MB, free: 15.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.765e-05/0.3149, allocations: 0 / 484.7 MB, free: 15.72 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.01075/0.3257, allocations: 6.811 MB / 491.5 MB, free: 8.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.3257, allocations: 8.031 kB / 491.5 MB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02654/0.3523, allocations: 3.763 MB / 495.2 MB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008453/0.3607, allocations: 5.29 MB / 0.4888 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.361, allocations: 365.5 kB / 0.4891 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008154/0.3618, allocations: 0.515 MB / 0.4896 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.3828, allocations: 16.3 MB / 0.5056 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001462/0.3829, allocations: 79.36 kB / 0.5056 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005124/0.3834, allocations: 239.7 kB / 0.5059 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003966/0.3874, allocations: 2.934 MB / 0.5087 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02128/0.4087, allocations: 13.77 MB / 0.5222 GB, free: 12.38 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.1851/0.5938, allocations: 64.8 MB / 0.5855 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01756/0.6114, allocations: 7.987 MB / 0.5933 GB, free: 99.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00372/0.6151, allocations: 4.353 MB / 0.5975 GB, free: 96.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01786/0.633, allocations: 19.35 MB / 0.6164 GB, free: 79.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.633, allocations: 64.56 kB / 0.6165 GB, free: 79.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.508e-06/0.633, allocations: 0 / 0.6165 GB, free: 79.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1307/0.7638, allocations: 50.52 MB / 0.6658 GB, free: 28.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.7638, allocations: 273.8 kB / 0.6661 GB, free: 28.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005593/0.7694, allocations: 6.051 MB / 0.672 GB, free: 22.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.7697, allocations: 78.64 kB / 0.672 GB, free: 22.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/0.7715, allocations: 4.669 MB / 0.6766 GB, free: 17.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007742/0.7723, allocations: 1.377 MB / 0.678 GB, free: 16.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007684/0.773, allocations: 0.8173 MB / 0.6787 GB, free: 15.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.861e-05/0.7731, allocations: 313 kB / 0.679 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004372/0.7775, allocations: 4.224 MB / 0.6832 GB, free: 10.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006079/0.7835, allocations: 9.453 MB / 0.6924 GB, free: 14.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1504/0.9339, allocations: 14.63 MB / 0.7067 GB, free: 146 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/0.9341, allocations: 51.62 kB / 0.7067 GB, free: 146 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.02936/0.9635, allocations: 17.58 MB / 0.7239 GB, free: 141.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.392e-05/0.9636, allocations: 84.84 kB / 0.724 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/0.9637, allocations: 182.5 kB / 0.7242 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01175/0.9754, allocations: 4.584 MB / 0.7286 GB, free: 141.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00517/0.9806, allocations: 2.131 MB / 0.7307 GB, free: 141 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02512/1.006, allocations: 23.75 MB / 0.7539 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005232/1.011, allocations: 0.5271 MB / 0.7544 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005006/1.012, allocations: 0.5439 MB / 0.755 GB, free: 123 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.003167/1.015, allocations: 3.114 MB / 0.758 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/1.015, allocations: 0.571 MB / 0.7586 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01796/1.033, allocations: 10.74 MB / 0.7691 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/1.033, allocations: 37.17 kB / 0.7691 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/1.033, allocations: 20 kB / 0.7691 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/1.033, allocations: 16.81 kB / 0.7691 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02778/1.061, allocations: 20.56 MB / 0.7892 GB, free: 88.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/1.061, allocations: 4 kB / 0.7892 GB, free: 88.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002199/1.063, allocations: 0.5305 MB / 0.7897 GB, free: 87.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0113/1.075, allocations: 4.222 MB / 0.7939 GB, free: 83.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002175/1.075, allocations: 63.98 kB / 0.7939 GB, free: 83.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02292/1.098, allocations: 21.57 MB / 0.815 GB, free: 61.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.098, allocations: 3.938 kB / 0.815 GB, free: 61.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02157/1.119, allocations: 15.67 MB / 0.8303 GB, free: 45.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008341/1.12, allocations: 0.5958 MB / 0.8309 GB, free: 45.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005489/1.121, allocations: 60 kB / 0.8309 GB, free: 45.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/1.123, allocations: 219.7 kB / 0.8311 GB, free: 44.99 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000544/1.124, allocations: 226.2 kB / 0.8313 GB, free: 44.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/1.124, allocations: 101.2 kB / 0.8314 GB, free: 44.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003652/1.128, allocations: 3.777 MB / 0.8351 GB, free: 40.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.128, allocations: 192 / 0.8351 GB, free: 40.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00518/1.133, allocations: 1.929 MB / 0.837 GB, free: 38.97 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.0004412/1.133, allocations: 232.8 kB / 0.8372 GB, free: 38.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01027/1.144, allocations: 10.5 MB / 0.8475 GB, free: 28.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/1.144, allocations: 4 kB / 0.8475 GB, free: 28.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003986/1.148, allocations: 4.118 MB / 0.8515 GB, free: 24.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/1.151, allocations: 0.7426 MB / 0.8522 GB, free: 23.35 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1536/1.305, allocations: 20.28 MB / 0.872 GB, free: 139.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004839/1.309, allocations: 4.826 MB / 0.8768 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/1.311, allocations: 447.7 kB / 0.8772 GB, free: 138.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/1.311, allocations: 0 / 0.8772 GB, free: 138.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1205/1.432, allocations: 152 MB / 1.026 GB, free: 10.41 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 -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