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.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.00146/0.00146, allocations: 110 kB / 21.23 MB, free: 0.6602 MB / 14.72 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.001559/0.001559, allocations: 186.4 kB / 24.51 MB, free: 4.031 MB / 14.72 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 1.477/1.477, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.2296/0.2296, allocations: 44.9 MB / 353.5 MB, free: 11.81 MB / 286.1 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.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(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 0.002033/0.002033, allocations: 75.88 kB / 497.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4245, allocations: 64.29 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01343/0.438, allocations: 10.47 MB / 0.559 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009027/0.447, allocations: 3.906 MB / 0.5629 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.4489, allocations: 79.62 kB / 0.5629 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004417/0.4533, allocations: 2.098 MB / 0.565 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.4581, allocations: 1.755 MB / 0.5667 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.4597, allocations: 0.7095 MB / 0.5674 GB, free: 12.36 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006143/0.4659, allocations: 3.97 MB / 0.5713 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003113/0.469, allocations: 1.954 MB / 0.5732 GB, free: 6.375 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002422/0.4714, allocations: 1.339 MB / 0.5745 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.475, allocations: 2.005 MB / 0.5764 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009339/0.4759, allocations: 264 kB / 0.5767 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.4787, allocations: 1.24 MB / 0.5779 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002177/0.4808, allocations: 1.718 MB / 0.5796 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003023/0.4839, allocations: 1.891 MB / 0.5814 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.4944, allocations: 6.237 MB / 0.5875 GB, free: 7.633 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.4944, allocations: 0 / 0.5875 GB, free: 7.633 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4944, allocations: 4 kB / 0.5875 GB, free: 7.629 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000229/0.4946, allocations: 0 / 0.5875 GB, free: 7.629 MB / 430.1 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.0105/0.5051, allocations: 4.26 MB / 0.5917 GB, free: 3.312 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.5052, allocations: 12.92 kB / 0.5917 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01774/0.5229, allocations: 2.455 MB / 0.5941 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006531/0.5295, allocations: 2.382 MB / 0.5964 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.5296, allocations: 189.3 kB / 0.5966 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007822/0.5304, allocations: 279.3 kB / 0.5969 GB, free: 13.94 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0155/0.5459, allocations: 8.579 MB / 0.6052 GB, free: 4.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.5461, allocations: 39.64 kB / 0.6053 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003725/0.5464, allocations: 131.9 kB / 0.6054 GB, free: 4.562 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003217/0.5497, allocations: 1.735 MB / 0.6071 GB, free: 2.828 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01611/0.5658, allocations: 7.284 MB / 0.6142 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05099/0.6168, allocations: 33.99 MB / 0.6474 GB, free: 8.441 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009319/0.6261, allocations: 2.878 MB / 0.6502 GB, free: 5.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002426/0.6285, allocations: 1.588 MB / 0.6518 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.6402, allocations: 6.507 MB / 0.6581 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.6402, allocations: 47.56 kB / 0.6582 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.709e-06/0.6402, allocations: 4 kB / 0.6582 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06788/0.7081, allocations: 19.48 MB / 0.6772 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.7082, allocations: 201.2 kB / 0.6774 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005444/0.7137, allocations: 3.755 MB / 0.6811 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000326/0.714, allocations: 49.7 kB / 0.6811 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002339/0.7163, allocations: 2.921 MB / 0.684 GB, free: 2.789 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001059/0.7174, allocations: 0.7482 MB / 0.6847 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001766/0.7192, allocations: 1.207 MB / 0.6859 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.7193, allocations: 305.1 kB / 0.6862 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003468/0.7228, allocations: 2.198 MB / 0.6883 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006404/0.7292, allocations: 5.762 MB / 0.6939 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.7406, allocations: 8.593 MB / 0.7023 GB, free: 12.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/0.7407, allocations: 36 kB / 0.7024 GB, free: 12.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02085/0.7615, allocations: 9.175 MB / 0.7113 GB, free: 3.211 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.7617, allocations: 66.33 kB / 0.7114 GB, free: 3.148 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002143/0.7619, allocations: 124 kB / 0.7115 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006111/0.768, allocations: 1.657 MB / 0.7131 GB, free: 1.367 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/0.7724, allocations: 1.318 MB / 0.7144 GB, free: 48 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01666/0.7891, allocations: 9.82 MB / 0.724 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004141/0.7932, allocations: 303.6 kB / 0.7243 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009604/0.7942, allocations: 372 kB / 0.7246 GB, free: 5.438 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (714): * Single equations (assignments): 710 * 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 {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003433/0.7976, allocations: 1.896 MB / 0.7265 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007157/0.7983, allocations: 345.7 kB / 0.7268 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2757/1.074, allocations: 4.113 MB / 0.7308 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.415e-05/1.074, allocations: 20.53 kB / 0.7309 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.64e-05/1.074, allocations: 7.75 kB / 0.7309 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.136e-05/1.074, allocations: 7.469 kB / 0.7309 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/1.092, allocations: 8.464 MB / 0.7391 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.998e-05/1.092, allocations: 2.062 kB / 0.7391 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/1.094, allocations: 246.5 kB / 0.7394 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005189/1.099, allocations: 1.43 MB / 0.7408 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002957/1.099, allocations: 31.38 kB / 0.7408 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/1.111, allocations: 9.126 MB / 0.7497 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.111, allocations: 3.938 kB / 0.7497 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01146/1.123, allocations: 6.715 MB / 0.7563 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/1.124, allocations: 317.6 kB / 0.7566 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004946/1.125, allocations: 31.98 kB / 0.7566 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/1.126, allocations: 83.89 kB / 0.7567 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/1.126, allocations: 117 kB / 0.7568 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/1.127, allocations: 52 kB / 0.7569 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003103/1.13, allocations: 2.32 MB / 0.7591 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.13, allocations: 3.844 kB / 0.7591 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004312/1.134, allocations: 0.995 MB / 0.7601 GB, free: 146.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (130): * Single equations (assignments): 126 * 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,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.0003734/1.134, allocations: 169.2 kB / 0.7603 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006478/1.141, allocations: 5.206 MB / 0.7653 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.141, allocations: 6.297 kB / 0.7653 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002019/1.143, allocations: 1.675 MB / 0.767 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/1.145, allocations: 388.1 kB / 0.7674 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/1.158, allocations: 8.725 MB / 0.7759 GB, free: 130.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/1.16, allocations: 2.965 MB / 0.7788 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0034/1.163, allocations: 1.807 MB / 0.7805 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005245/1.164, allocations: 223.4 kB / 0.7807 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/1.164, allocations: 0 / 0.7807 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.06479/1.229, allocations: 40.73 MB / 0.8205 GB, free: 85.04 MB / 0.5606 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.648944120854139]