Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.0009576/0.0009576, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009706/0.0009706, allocations: 169.9 kB / 25.61 MB, free: 8.902 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.9614/0.9614, allocations: 177.2 MB / 206.1 MB, free: 4.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1416/0.1416, allocations: 34.26 MB / 296.9 MB, free: 13.94 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.416e-05, allocations: 4.391 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01368/0.01371, allocations: 14.07 MB / 393.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.02579, allocations: 4.719 MB / 398.1 MB, free: 4.566 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003384/0.02917, allocations: 107.5 kB / 398.2 MB, free: 4.461 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00316/0.03233, allocations: 3.329 MB / 401.5 MB, free: 1.121 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005005/0.03733, allocations: 2.71 MB / 404.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.03899, allocations: 1.111 MB / 405.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007992/0.04698, allocations: 7.811 MB / 413.1 MB, free: 5.461 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004806/0.05179, allocations: 4.258 MB / 417.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006238/0.05803, allocations: 4.44 MB / 421.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004249/0.06228, allocations: 3.585 MB / 425.4 MB, free: 9.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.06353, allocations: 488 kB / 425.9 MB, free: 8.613 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.06577, allocations: 1.471 MB / 427.4 MB, free: 7.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002337/0.0681, allocations: 3.05 MB / 430.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.07048, allocations: 1.85 MB / 432.3 MB, free: 2.227 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007757/0.07824, allocations: 6.87 MB / 439.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.07825, allocations: 4 kB / 439.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.07825, allocations: 0 / 439.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002682/0.07851, allocations: 0 / 439.1 MB, free: 11.33 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01047/0.08899, allocations: 7.398 MB / 446.5 MB, free: 3.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.08903, allocations: 12.03 kB / 446.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007773/0.0968, allocations: 2.786 MB / 449.3 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005473/0.1023, allocations: 3.054 MB / 452.4 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.1025, allocations: 316.4 kB / 452.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007839/0.1033, allocations: 436.2 kB / 453.1 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.1161, allocations: 8.082 MB / 461.2 MB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001529/0.1163, allocations: 55.5 kB / 461.3 MB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004684/0.1168, allocations: 207.8 kB / 461.5 MB, free: 3.582 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002565/0.1193, allocations: 2.853 MB / 464.3 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009765/0.1291, allocations: 3.954 MB / 468.3 MB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2087/0.3378, allocations: 59.24 MB / 0.5151 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007111/0.3449, allocations: 2.556 MB / 0.5176 GB, free: 61.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.3462, allocations: 0.8722 MB / 0.5185 GB, free: 61.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/0.3568, allocations: 6.986 MB / 0.5253 GB, free: 60.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.3568, allocations: 63.39 kB / 0.5254 GB, free: 60.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=272): time 6.011e-06/0.3568, allocations: 0 / 0.5254 GB, free: 60.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=303): time 0.02748/0.3843, allocations: 10.96 MB / 0.5361 GB, free: 54.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.3844, allocations: 213.3 kB / 0.5363 GB, free: 53.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/0.3882, allocations: 4.81 MB / 0.541 GB, free: 49.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002666/0.3885, allocations: 61.7 kB / 0.541 GB, free: 49.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.39, allocations: 4.856 MB / 0.5458 GB, free: 45.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008622/0.3909, allocations: 1.229 MB / 0.547 GB, free: 43.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/0.3923, allocations: 1.953 MB / 0.5489 GB, free: 41.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.3924, allocations: 480.8 kB / 0.5493 GB, free: 41.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.3938, allocations: 1.028 MB / 0.5503 GB, free: 40.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003263/0.3971, allocations: 8.764 MB / 0.5589 GB, free: 28.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005922/0.403, allocations: 10.6 MB / 0.5693 GB, free: 14.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/0.4031, allocations: 52 kB / 0.5693 GB, free: 14.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.009351/0.4125, allocations: 7.567 MB / 0.5767 GB, free: 6.926 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.219e-05/0.4126, allocations: 84 kB / 0.5768 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.4127, allocations: 180 kB / 0.5769 GB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00194/0.4146, allocations: 0.8441 MB / 0.5778 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003604/0.4182, allocations: 1.973 MB / 0.5797 GB, free: 3.848 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004267/0.4225, allocations: 5.568 MB / 0.5851 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004384/0.4269, allocations: 371.7 kB / 0.5855 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006677/0.4275, allocations: 448 kB / 0.5859 GB, free: 13.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1108): * Single equations (assignments): 1100 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002093/0.4296, allocations: 0.8644 MB / 0.5868 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009957/0.4306, allocations: 0.5477 MB / 0.5873 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003913/0.4345, allocations: 2.449 MB / 0.5897 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.113e-05/0.4346, allocations: 51.98 kB / 0.5897 GB, free: 9.297 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4346, allocations: 9.031 kB / 0.5897 GB, free: 9.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.4346, allocations: 11.95 kB / 0.5898 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.4468, allocations: 7.181 MB / 0.5968 GB, free: 1.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.4468, allocations: 8.781 kB / 0.5968 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.4481, allocations: 407.4 kB / 0.5972 GB, free: 1.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001663/0.4497, allocations: 0.5789 MB / 0.5977 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.4499, allocations: 52 kB / 0.5978 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003927/0.4538, allocations: 4.585 MB / 0.6023 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.4538, allocations: 8 kB / 0.6023 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006535/0.4604, allocations: 3.734 MB / 0.6059 GB, free: 8.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.4621, allocations: 444.7 kB / 0.6063 GB, free: 7.723 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006046/0.4627, allocations: 59.97 kB / 0.6064 GB, free: 7.664 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.4641, allocations: 48 kB / 0.6064 GB, free: 7.617 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/0.4645, allocations: 177.5 kB / 0.6066 GB, free: 7.441 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/0.4647, allocations: 60 kB / 0.6067 GB, free: 7.383 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002576/0.4673, allocations: 1.906 MB / 0.6085 GB, free: 5.484 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4673, allocations: 0 / 0.6085 GB, free: 5.484 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006767/0.474, allocations: 1.562 MB / 0.6101 GB, free: 3.922 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (j1.phi,j1.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 (239): * Single equations (assignments): 231 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005906/0.4746, allocations: 222.6 kB / 0.6103 GB, free: 3.695 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007457/0.4821, allocations: 4.345 MB / 0.6145 GB, free: 15.35 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.4821, allocations: 0 / 0.6145 GB, free: 15.35 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.484, allocations: 1.18 MB / 0.6157 GB, free: 14.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003212/0.4872, allocations: 0.539 MB / 0.6162 GB, free: 13.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/0.5061, allocations: 11.5 MB / 0.6274 GB, free: 1.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/0.5086, allocations: 1.83 MB / 0.6292 GB, free: 48 kB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002748/0.5113, allocations: 0.712 MB / 0.6299 GB, free: 15.33 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/0.5129, allocations: 0.7793 MB / 0.6307 GB, free: 14.55 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/0.5129, allocations: 8 kB / 0.6307 GB, free: 14.54 MB / 474.7 MB Notification: Performance of Templates: time 0.2073/0.7202, allocations: 52.36 MB / 0.6818 GB, free: 162.6 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.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.929404270835221]