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.001323/0.001323, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001532/0.001532, allocations: 148.8 kB / 24.89 MB, free: 8.742 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.8856/0.8856, allocations: 173.4 MB / 201.5 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.713e-06/1.713e-06, allocations: 0 / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.458e-05, allocations: 7.656 kB / 268.5 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01556/0.01559, allocations: 16.25 MB / 284.7 MB, free: 9.473 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009246/0.02483, allocations: 5.581 MB / 290.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00253/0.02736, allocations: 139.2 kB / 290.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005566/0.03293, allocations: 4.699 MB / 295.2 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005576/0.03851, allocations: 2.978 MB / 298.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002511/0.04102, allocations: 1.669 MB / 299.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01209/0.0531, allocations: 9.724 MB / 309.5 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00894/0.06204, allocations: 5.746 MB / 315.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01062/0.07267, allocations: 5.181 MB / 320.5 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005511/0.07818, allocations: 4.24 MB / 324.7 MB, free: 1.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001701/0.07988, allocations: 0.5508 MB / 325.2 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002933/0.08281, allocations: 1.584 MB / 326.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003268/0.08608, allocations: 3.647 MB / 330.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003876/0.08995, allocations: 2.22 MB / 332.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009755/0.09971, allocations: 7.633 MB / 340.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.09971, allocations: 0 / 340.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09972, allocations: 0 / 340.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003226/0.1, allocations: 0 / 340.3 MB, free: 1.66 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.1346/0.2347, allocations: 7.532 MB / 347.9 MB, free: 71.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2347, allocations: 9.656 kB / 347.9 MB, free: 71.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005265/0.24, allocations: 1.803 MB / 349.7 MB, free: 71.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004453/0.2444, allocations: 3.45 MB / 353.1 MB, free: 70.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.2446, allocations: 365.5 kB / 353.5 MB, free: 70.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005899/0.2452, allocations: 0.5243 MB / 354 MB, free: 69.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008412/0.2536, allocations: 8.09 MB / 362.1 MB, free: 61.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.2537, allocations: 78.48 kB / 362.2 MB, free: 61.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000395/0.2541, allocations: 239.8 kB / 362.4 MB, free: 61.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/0.256, allocations: 2.645 MB / 365 MB, free: 58.63 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008269/0.2642, allocations: 4.149 MB / 369.2 MB, free: 54.49 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.03738/0.3016, allocations: 49.06 MB / 418.3 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007586/0.3092, allocations: 3.667 MB / 421.9 MB, free: 84 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.3105, allocations: 0.8486 MB / 422.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.3225, allocations: 7.995 MB / 430.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.3225, allocations: 80.42 kB / 430.8 MB, free: 7.125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=259): time 5.491e-06/0.3225, allocations: 0 / 430.8 MB, free: 7.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=332): time 0.04654/0.369, allocations: 19.6 MB / 450.4 MB, free: 3.516 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.3691, allocations: 273.5 kB / 450.7 MB, free: 3.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.3739, allocations: 4.909 MB / 455.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004522/0.3743, allocations: 69.7 kB / 455.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002156/0.3765, allocations: 4.546 MB / 460.2 MB, free: 9.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001101/0.3776, allocations: 1.294 MB / 461.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.3791, allocations: 1.768 MB / 463.3 MB, free: 6.562 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.361e-05/0.3792, allocations: 305.1 kB / 463.6 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/0.3812, allocations: 1.321 MB / 464.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004639/0.3858, allocations: 6.694 MB / 471.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007129/0.393, allocations: 8.772 MB / 480.4 MB, free: 64 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.1287/0.5217, allocations: 51.33 kB / 480.4 MB, free: 113.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01357/0.5353, allocations: 7.632 MB / 488.1 MB, free: 112.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.5354, allocations: 85.62 kB / 488.1 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/0.5355, allocations: 191.3 kB / 488.3 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004603/0.5401, allocations: 1.966 MB / 490.3 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/0.5439, allocations: 2.084 MB / 492.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007648/0.5515, allocations: 6.809 MB / 499.2 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004622/0.5562, allocations: 406.2 kB / 499.6 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006257/0.5568, allocations: 477.3 kB / 0.4883 GB, free: 108.9 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.002107/0.5589, allocations: 0.8862 MB / 0.4892 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007548/0.5597, allocations: 391.3 kB / 0.4896 GB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005218/0.5649, allocations: 3.189 MB / 0.4927 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.5649, allocations: 32 kB / 0.4927 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/0.5649, allocations: 12 kB / 0.4927 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.5649, allocations: 18.91 kB / 0.4928 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/0.577, allocations: 8.579 MB / 0.5011 GB, free: 98.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.577, allocations: 4 kB / 0.5011 GB, free: 98.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.578, allocations: 439.3 kB / 0.5016 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/0.5824, allocations: 1.909 MB / 0.5034 GB, free: 96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.5826, allocations: 63.98 kB / 0.5035 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006348/0.589, allocations: 5.704 MB / 0.509 GB, free: 90.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.589, allocations: 11.94 kB / 0.5091 GB, free: 90.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006324/0.5953, allocations: 4.28 MB / 0.5132 GB, free: 85.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.5965, allocations: 0.5181 MB / 0.5137 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004931/0.597, allocations: 59.98 kB / 0.5138 GB, free: 85.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.5982, allocations: 67.98 kB / 0.5139 GB, free: 85.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/0.5986, allocations: 217.5 kB / 0.5141 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.5987, allocations: 67.98 kB / 0.5141 GB, free: 85.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.6004, allocations: 1.88 MB / 0.516 GB, free: 83.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6004, allocations: 2.953 kB / 0.516 GB, free: 83.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004783/0.6052, allocations: 1.954 MB / 0.5179 GB, free: 81.57 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.0004574/0.6057, allocations: 232.2 kB / 0.5181 GB, free: 81.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00461/0.6103, allocations: 4.522 MB / 0.5225 GB, free: 76.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001648/0.6104, allocations: 124.2 kB / 0.5226 GB, free: 76.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.6119, allocations: 1.406 MB / 0.524 GB, free: 75.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/0.6149, allocations: 1.006 MB / 0.525 GB, free: 74.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.6281, allocations: 12.28 MB / 0.537 GB, free: 61.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/0.6296, allocations: 1.989 MB / 0.5389 GB, free: 59.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002239/0.6319, allocations: 0.7732 MB / 0.5397 GB, free: 59.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/0.6331, allocations: 0.8721 MB / 0.5405 GB, free: 58.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.064e-06/0.6331, allocations: 0 / 0.5405 GB, free: 58.29 MB / 378.7 MB Notification: Performance of Templates: time 0.1983/0.8315, allocations: 73.08 MB / 0.6119 GB, free: 120.8 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: 4.872415592893958]