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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008707/0.0008707, allocations: 140.4 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9813/0.9813, allocations: 173.4 MB / 202.3 MB, free: 8.289 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.411e-05, allocations: 2.312 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01668/0.01671, allocations: 16.25 MB / 285.5 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009634/0.02634, allocations: 5.348 MB / 290.8 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001883/0.02822, allocations: 139.3 kB / 291 MB, free: 3.957 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0044/0.03262, allocations: 4.629 MB / 295.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004667/0.03729, allocations: 2.954 MB / 298.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.03928, allocations: 1.649 MB / 300.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007561/0.04684, allocations: 9.744 MB / 309.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00461/0.05145, allocations: 5.612 MB / 315.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005095/0.05654, allocations: 5.22 MB / 320.8 MB, free: 6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004254/0.0608, allocations: 4.439 MB / 325.2 MB, free: 1.551 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008039/0.0616, allocations: 0.5508 MB / 325.8 MB, free: 1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.06362, allocations: 1.588 MB / 327.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.06586, allocations: 3.643 MB / 331 MB, free: 11.76 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002239/0.0681, allocations: 2.224 MB / 333.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006658/0.07476, allocations: 7.641 MB / 340.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.07477, allocations: 0 / 340.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.07477, allocations: 0 / 340.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001141/0.07488, allocations: 0 / 340.8 MB, free: 1.859 MB / 314.7 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.1438/0.2187, allocations: 8.358 MB / 349.2 MB, free: 71.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2187, allocations: 8.812 kB / 349.2 MB, free: 71.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01331/0.232, allocations: 3.468 MB / 352.7 MB, free: 71.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004578/0.2366, allocations: 3.659 MB / 356.3 MB, free: 68.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.2367, allocations: 370.2 kB / 356.7 MB, free: 67.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005922/0.2373, allocations: 0.5176 MB / 357.2 MB, free: 67.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009691/0.247, allocations: 9.095 MB / 366.3 MB, free: 57.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001312/0.2471, allocations: 77.19 kB / 366.4 MB, free: 57.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003953/0.2475, allocations: 235.1 kB / 366.6 MB, free: 57.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001705/0.2492, allocations: 2.65 MB / 369.3 MB, free: 54.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00721/0.2564, allocations: 4.267 MB / 373.5 MB, free: 50.36 MB / 314.7 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.04433/0.3008, allocations: 67.62 MB / 441.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01359/0.3144, allocations: 4.111 MB / 445.3 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.316, allocations: 1.06 MB / 446.3 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/0.3312, allocations: 8.765 MB / 455.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/0.3312, allocations: 67.39 kB / 455.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=259): time 5.731e-06/0.3312, allocations: 0 / 455.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=332): time 0.05522/0.3865, allocations: 22.05 MB / 477.2 MB, free: 8.609 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.3866, allocations: 273.4 kB / 477.5 MB, free: 8.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006041/0.3926, allocations: 5.417 MB / 482.9 MB, free: 2.863 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.3931, allocations: 73.7 kB / 483 MB, free: 2.785 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1327/0.5258, allocations: 5.243 MB / 488.2 MB, free: 119.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001783/0.5276, allocations: 1.332 MB / 489.5 MB, free: 119 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003371/0.531, allocations: 2.039 MB / 491.6 MB, free: 118.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.531, allocations: 478.1 kB / 492 MB, free: 118.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.5332, allocations: 1.118 MB / 493.2 MB, free: 118.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004669/0.5379, allocations: 9.304 MB / 0.4907 GB, free: 107.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007768/0.5457, allocations: 11.27 MB / 0.5017 GB, free: 97.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002223/0.5459, allocations: 52.75 kB / 0.5017 GB, free: 97.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01754/0.5634, allocations: 8.882 MB / 0.5104 GB, free: 93.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.5635, allocations: 93.69 kB / 0.5105 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001796/0.5637, allocations: 188 kB / 0.5107 GB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005618/0.5693, allocations: 1.981 MB / 0.5126 GB, free: 92.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/0.5738, allocations: 2.087 MB / 0.5147 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009719/0.5835, allocations: 8.2 MB / 0.5227 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007163/0.5906, allocations: 400.8 kB / 0.523 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/0.5916, allocations: 479.9 kB / 0.5235 GB, free: 82.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * 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 (1158): * Single equations (assignments): 1153 * 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 {(1,29,100.0%), (4,32,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002261/0.5939, allocations: 0.9348 MB / 0.5244 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.5949, allocations: 0.637 MB / 0.525 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006223/0.6012, allocations: 3.602 MB / 0.5286 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/0.6012, allocations: 36 kB / 0.5286 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.071e-05/0.6012, allocations: 12 kB / 0.5286 GB, free: 77.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.6012, allocations: 11.95 kB / 0.5286 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/0.6169, allocations: 9.963 MB / 0.5383 GB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.6169, allocations: 4.719 kB / 0.5383 GB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.6181, allocations: 459 kB / 0.5388 GB, free: 66.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004478/0.6225, allocations: 1.664 MB / 0.5404 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/0.6227, allocations: 67.94 kB / 0.5405 GB, free: 64.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007143/0.6299, allocations: 7.048 MB / 0.5474 GB, free: 57.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6299, allocations: 14.89 kB / 0.5474 GB, free: 57.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009585/0.6395, allocations: 4.953 MB / 0.5522 GB, free: 52.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/0.6414, allocations: 0.5235 MB / 0.5527 GB, free: 52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009283/0.6423, allocations: 60 kB / 0.5528 GB, free: 51.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002281/0.6446, allocations: 71.98 kB / 0.5528 GB, free: 51.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000657/0.6453, allocations: 221.4 kB / 0.5531 GB, free: 51.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002267/0.6455, allocations: 75.97 kB / 0.5531 GB, free: 51.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004316/0.6498, allocations: 2.214 MB / 0.5553 GB, free: 49.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6498, allocations: 0 / 0.5553 GB, free: 49.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009266/0.6591, allocations: 1.961 MB / 0.5572 GB, free: 47.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (255): * Single equations (assignments): 250 * 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 {(4,28,62.5%), (1,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007704/0.6598, allocations: 242.6 kB / 0.5574 GB, free: 47.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008259/0.6681, allocations: 5.037 MB / 0.5624 GB, free: 42.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.6681, allocations: 4 kB / 0.5624 GB, free: 42.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003017/0.6711, allocations: 1.671 MB / 0.564 GB, free: 40.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004519/0.6757, allocations: 0.7154 MB / 0.5647 GB, free: 39.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0291/0.7048, allocations: 12.45 MB / 0.5768 GB, free: 27.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005755/0.7105, allocations: 2.004 MB / 0.5788 GB, free: 25.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.005693/0.7162, allocations: 0.7806 MB / 0.5796 GB, free: 24.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/0.7178, allocations: 0.9354 MB / 0.5805 GB, free: 23.31 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7179, allocations: 4 kB / 0.5805 GB, free: 23.31 MB / 378.7 MB Notification: Performance of Templates: time 0.2233/0.9411, allocations: 74.89 MB / 0.6536 GB, free: 93.45 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.316797019913793]