Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 175.8 kB / 24.91 MB, free: 8.773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9961/0.9961, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2609/0.2609, allocations: 32.81 MB / 294.6 MB, free: 1.266 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 3.938 kB / 323.3 MB, free: 9.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.313e-05, allocations: 2.312 kB / 323.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.009588/0.009612, allocations: 9.841 MB / 333.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00727/0.01688, allocations: 3.921 MB / 337 MB, free: 11.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.01798, allocations: 71.69 kB / 337.1 MB, free: 11.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.02086, allocations: 2.172 MB / 339.3 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003342/0.02421, allocations: 1.769 MB / 341.1 MB, free: 7.801 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.02555, allocations: 0.7716 MB / 341.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004445/0.02999, allocations: 4.395 MB / 346.2 MB, free: 2.625 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002585/0.03258, allocations: 2.456 MB / 348.7 MB, free: 96 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002996/0.03558, allocations: 2.425 MB / 351.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002383/0.03796, allocations: 1.921 MB / 353 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004473/0.03841, allocations: 272 kB / 353.3 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.04011, allocations: 1.17 MB / 354.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.042, allocations: 1.784 MB / 356.2 MB, free: 8.512 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.04372, allocations: 1.079 MB / 357.3 MB, free: 7.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004665/0.04839, allocations: 4.239 MB / 361.6 MB, free: 3.176 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.04839, allocations: 4 kB / 361.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.0484, allocations: 0 / 361.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001401/0.04854, allocations: 3.938 kB / 361.6 MB, free: 3.168 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.00483/0.05337, allocations: 3.952 MB / 365.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.0534, allocations: 8.031 kB / 365.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003269/0.05667, allocations: 1.105 MB / 366.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.05884, allocations: 1.681 MB / 368.3 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.05894, allocations: 197.2 kB / 368.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003554/0.05929, allocations: 268.5 kB / 368.8 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004729/0.06402, allocations: 4.354 MB / 373.1 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.379e-05/0.0641, allocations: 47.58 kB / 373.2 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000222/0.06433, allocations: 127.9 kB / 373.3 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/0.06563, allocations: 1.532 MB / 374.8 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004035/0.06967, allocations: 2.171 MB / 377 MB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02257/0.09224, allocations: 26.81 MB / 403.8 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003335/0.09558, allocations: 1.464 MB / 405.3 MB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004624/0.09604, allocations: 352.2 kB / 405.6 MB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004702/0.1007, allocations: 3.453 MB / 409.1 MB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.1008, allocations: 51.5 kB / 409.1 MB, free: 1.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 4.087e-06/0.1008, allocations: 0 / 409.1 MB, free: 1.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=169): time 0.01787/0.1187, allocations: 7.295 MB / 416.4 MB, free: 10.37 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.1187, allocations: 204.9 kB / 416.6 MB, free: 10.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/0.1218, allocations: 3.006 MB / 419.6 MB, free: 7.105 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001439/0.122, allocations: 49.7 kB / 419.7 MB, free: 7.051 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.1234, allocations: 2.802 MB / 422.5 MB, free: 4.215 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004879/0.1239, allocations: 0.6783 MB / 423.2 MB, free: 3.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009269/0.1248, allocations: 1.132 MB / 424.3 MB, free: 2.387 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/0.1249, allocations: 305.1 kB / 424.6 MB, free: 2.086 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.1261, allocations: 0.7621 MB / 425.4 MB, free: 1.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00321/0.1293, allocations: 4.36 MB / 429.7 MB, free: 11.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0048/0.1341, allocations: 5.592 MB / 435.3 MB, free: 3.672 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.222e-05/0.1342, allocations: 40 kB / 435.3 MB, free: 3.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.006869/0.1411, allocations: 4.375 MB / 439.7 MB, free: 15.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.1411, allocations: 63.94 kB / 439.8 MB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.1412, allocations: 132 kB / 439.9 MB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.1431, allocations: 0.7147 MB / 440.6 MB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/0.1456, allocations: 1.369 MB / 442 MB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004022/0.1496, allocations: 2.998 MB / 445 MB, free: 9.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002737/0.1523, allocations: 263.7 kB / 445.2 MB, free: 9.609 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003295/0.1527, allocations: 316 kB / 445.6 MB, free: 9.301 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (730): * Single equations (assignments): 726 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.1537, allocations: 0.6068 MB / 446.2 MB, free: 8.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.1541, allocations: 211.8 kB / 446.4 MB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.1561, allocations: 1.203 MB / 447.6 MB, free: 7.246 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/0.1561, allocations: 23.98 kB / 447.6 MB, free: 7.223 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.1561, allocations: 4 kB / 447.6 MB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.1561, allocations: 15.86 kB / 447.6 MB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005588/0.1617, allocations: 3.78 MB / 451.4 MB, free: 3.348 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.1617, allocations: 7.938 kB / 451.4 MB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.1623, allocations: 223.9 kB / 451.6 MB, free: 3.121 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001865/0.1642, allocations: 0.6886 MB / 452.3 MB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.579e-05/0.1643, allocations: 31.98 kB / 452.3 MB, free: 2.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1608/0.325, allocations: 2.578 MB / 454.9 MB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.325, allocations: 3.969 kB / 454.9 MB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.3284, allocations: 1.989 MB / 456.9 MB, free: 121 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/0.3288, allocations: 277 kB / 457.2 MB, free: 121 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.329, allocations: 29.03 kB / 457.2 MB, free: 121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005573/0.3296, allocations: 39.86 kB / 457.2 MB, free: 121 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.3298, allocations: 103.6 kB / 457.4 MB, free: 121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-05/0.3299, allocations: 36.55 kB / 457.4 MB, free: 121 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001054/0.3309, allocations: 1.073 MB / 458.5 MB, free: 120.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3309, allocations: 0 / 458.5 MB, free: 120.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002773/0.3337, allocations: 0.9582 MB / 459.4 MB, free: 120.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (revolute.phi,revolute.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 (122): * Single equations (assignments): 118 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0002985/0.334, allocations: 160.8 kB / 459.6 MB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.3364, allocations: 2.552 MB / 462.1 MB, free: 120.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001326/0.3366, allocations: 98.53 kB / 462.2 MB, free: 120.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.3371, allocations: 0.6024 MB / 462.8 MB, free: 120.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.3385, allocations: 0.5037 MB / 463.3 MB, free: 120.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006755/0.3452, allocations: 6.447 MB / 469.8 MB, free: 117.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.346, allocations: 1.09 MB / 470.9 MB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001046/0.3471, allocations: 463.9 kB / 471.3 MB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006064/0.3477, allocations: 0.4986 MB / 471.8 MB, free: 116.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3477, allocations: 0 / 471.8 MB, free: 116.6 MB / 426.7 MB Notification: Performance of Templates: time 0.04701/0.3947, allocations: 31.49 MB / 0.4915 GB, free: 87.82 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.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.057814326137304]