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.001259/0.001259, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.4 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 58.62 kB / 307.6 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09425, allocations: 50.53 MB / 358.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1579/0.2522, allocations: 17.23 MB / 375.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009212/0.2615, allocations: 5.49 MB / 380.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002247/0.2638, allocations: 118.6 kB / 381 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006961/0.2708, allocations: 4.354 MB / 385.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006465/0.2773, allocations: 2.707 MB / 388.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.28, allocations: 1.466 MB / 389.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009461/0.2895, allocations: 8.648 MB / 398.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005219/0.2948, allocations: 5.368 MB / 403.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00383/0.2986, allocations: 2.656 MB / 406.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00448/0.3031, allocations: 3.828 MB / 410 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.3042, allocations: 0.5352 MB / 410.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00291/0.3072, allocations: 1.611 MB / 412.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002708/0.3099, allocations: 3.316 MB / 415.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/0.3136, allocations: 3.624 MB / 419.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.3237, allocations: 10.81 MB / 429.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3237, allocations: 0 / 429.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3238, allocations: 0 / 429.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.324, allocations: 0 / 429.9 MB, free: 3.496 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.01533/0.3393, allocations: 8.191 MB / 438.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.3394, allocations: 12.03 kB / 438.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02755/0.367, allocations: 3.673 MB / 441.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/0.3777, allocations: 5.177 MB / 447 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.3779, allocations: 369.5 kB / 447.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.379, allocations: 0.519 MB / 447.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02468/0.4037, allocations: 16.26 MB / 464.1 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001805/0.4039, allocations: 83.25 kB / 464.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005876/0.4045, allocations: 235.8 kB / 464.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00414/0.4086, allocations: 2.923 MB / 467.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0244/0.4331, allocations: 13.72 MB / 481.1 MB, free: 15.06 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.2114/0.6445, allocations: 64.81 MB / 0.5331 GB, free: 124.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02104/0.6655, allocations: 7.873 MB / 0.5408 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/0.6704, allocations: 4.349 MB / 0.545 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02177/0.6922, allocations: 19.44 MB / 0.564 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.6922, allocations: 71.36 kB / 0.5641 GB, free: 113.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.789e-06/0.6923, allocations: 0 / 0.5641 GB, free: 113.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1381/0.8304, allocations: 49.84 MB / 0.6127 GB, free: 73.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.8305, allocations: 273.1 kB / 0.613 GB, free: 73.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006515/0.837, allocations: 6.046 MB / 0.6189 GB, free: 67.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000812/0.8378, allocations: 81.7 kB / 0.619 GB, free: 67.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002093/0.8399, allocations: 4.661 MB / 0.6235 GB, free: 62.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/0.8414, allocations: 1.373 MB / 0.6249 GB, free: 61.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002488/0.8439, allocations: 1.915 MB / 0.6268 GB, free: 59.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.844, allocations: 301.1 kB / 0.627 GB, free: 59.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005084/0.8491, allocations: 4.239 MB / 0.6312 GB, free: 54.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006408/0.8555, allocations: 9.464 MB / 0.6404 GB, free: 42.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/0.8678, allocations: 14.65 MB / 0.6547 GB, free: 25.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001178/0.868, allocations: 48 kB / 0.6548 GB, free: 25.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03174/0.8998, allocations: 17.56 MB / 0.6719 GB, free: 8.109 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.681e-05/0.8999, allocations: 80 kB / 0.672 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001933/0.9001, allocations: 184 kB / 0.6722 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0133/0.9134, allocations: 4.555 MB / 0.6766 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006754/0.9202, allocations: 2.133 MB / 0.6787 GB, free: 1.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1907/1.111, allocations: 25.38 MB / 0.7035 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006472/1.117, allocations: 0.5332 MB / 0.704 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/1.119, allocations: 0.541 MB / 0.7045 GB, free: 146.3 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.005016/1.124, allocations: 3.117 MB / 0.7076 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.125, allocations: 0.5654 MB / 0.7081 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02034/1.145, allocations: 10.72 MB / 0.7186 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.087e-05/1.145, allocations: 41.97 kB / 0.7186 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.01e-05/1.145, allocations: 15.78 kB / 0.7187 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-05/1.145, allocations: 21.81 kB / 0.7187 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03409/1.179, allocations: 20.52 MB / 0.7387 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.648e-05/1.18, allocations: 0 / 0.7387 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002588/1.182, allocations: 0.5423 MB / 0.7392 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01171/1.194, allocations: 4.192 MB / 0.7433 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005551/1.194, allocations: 67.53 kB / 0.7434 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02493/1.219, allocations: 23.12 MB / 0.766 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.219, allocations: 2.812 kB / 0.766 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02337/1.243, allocations: 15.66 MB / 0.7813 GB, free: 97.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.244, allocations: 0.5932 MB / 0.7819 GB, free: 97 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/1.245, allocations: 56 kB / 0.7819 GB, free: 96.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.248, allocations: 222.7 kB / 0.7821 GB, free: 96.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007126/1.249, allocations: 226.1 kB / 0.7823 GB, free: 96.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/1.249, allocations: 99.92 kB / 0.7824 GB, free: 96.42 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00438/1.253, allocations: 3.765 MB / 0.7861 GB, free: 92.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.253, allocations: 0 / 0.7861 GB, free: 92.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007119/1.26, allocations: 1.913 MB / 0.788 GB, free: 90.75 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.0005912/1.261, allocations: 217.3 kB / 0.7882 GB, free: 90.54 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02125/1.282, allocations: 15.44 MB / 0.8033 GB, free: 75.18 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.282, allocations: 4 kB / 0.8033 GB, free: 75.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.287, allocations: 4.132 MB / 0.8073 GB, free: 71.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/1.291, allocations: 0.767 MB / 0.8081 GB, free: 70.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/1.313, allocations: 17.03 MB / 0.8247 GB, free: 53.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004107/1.317, allocations: 4.827 MB / 0.8294 GB, free: 48.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/1.319, allocations: 439.4 kB / 0.8298 GB, free: 47.98 MB / 478.1 MB Notification: Performance of SimCode: time 5.31e-07/1.319, allocations: 4 kB / 0.8298 GB, free: 47.97 MB / 478.1 MB Notification: Performance of Templates: time 0.6131/1.932, allocations: 152.9 MB / 0.9791 GB, free: 57.6 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches