Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0014/0.0014, allocations: 88.2 kB / 20.94 MB, free: 3.609 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.001404/0.001404, allocations: 169.3 kB / 24.24 MB, free: 316 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.023/1.023, allocations: 158.6 MB / 186 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1457/0.1457, allocations: 32.37 MB / 270.7 MB, free: 14.78 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.956e-06/2.956e-06, allocations: 3.984 kB / 347.7 MB, free: 9.797 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.467e-05, allocations: 10.25 kB / 347.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0215/0.02152, allocations: 14.49 MB / 362.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.03963, allocations: 4.741 MB / 366.9 MB, free: 6.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005575/0.04521, allocations: 107.5 kB / 367 MB, free: 6.375 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0113/0.05651, allocations: 3.383 MB / 370.4 MB, free: 2.977 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009059/0.06557, allocations: 2.741 MB / 373.1 MB, free: 228 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002701/0.06827, allocations: 1.119 MB / 374.2 MB, free: 15.1 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01163/0.0799, allocations: 7.343 MB / 381.6 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007937/0.08784, allocations: 4.258 MB / 385.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0106/0.09844, allocations: 3.422 MB / 389.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008775/0.1072, allocations: 3.659 MB / 392.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002365/0.1096, allocations: 500 kB / 393.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00495/0.1145, allocations: 1.482 MB / 394.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005274/0.1198, allocations: 3.117 MB / 398 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.123, allocations: 1.896 MB / 399.9 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006707/0.1298, allocations: 6.982 MB / 406.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1298, allocations: 0 / 406.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1298, allocations: 0 / 406.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.891e-05/0.1298, allocations: 0 / 406.9 MB, free: 14.32 MB / 346.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.008098/0.1379, allocations: 8.006 MB / 414.9 MB, free: 6.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.138, allocations: 8.031 kB / 414.9 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008749/0.1467, allocations: 4.677 MB / 419.6 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004231/0.151, allocations: 3.723 MB / 423.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.1511, allocations: 316.4 kB / 423.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006741/0.1518, allocations: 440.2 kB / 424 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009299/0.1611, allocations: 9.003 MB / 433.1 MB, free: 2.727 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-05/0.1612, allocations: 63.56 kB / 433.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000381/0.1616, allocations: 203.8 kB / 433.3 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002816/0.1644, allocations: 3.212 MB / 436.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.1759, allocations: 5.227 MB / 441.8 MB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1842/0.3601, allocations: 60.02 MB / 0.49 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006743/0.3668, allocations: 3.049 MB / 0.493 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.3683, allocations: 1.195 MB / 0.4942 GB, free: 28.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009628/0.3779, allocations: 8.351 MB / 0.5023 GB, free: 25.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.3779, allocations: 61.52 kB / 0.5024 GB, free: 25.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=292): time 4.619e-06/0.378, allocations: 0 / 0.5024 GB, free: 25.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=342): time 0.07194/0.4499, allocations: 27.34 MB / 0.5291 GB, free: 4.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.45, allocations: 210 kB / 0.5293 GB, free: 3.887 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00463/0.4546, allocations: 4.741 MB / 0.5339 GB, free: 15.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004571/0.455, allocations: 73.7 kB / 0.534 GB, free: 15.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002737/0.4578, allocations: 4.729 MB / 0.5386 GB, free: 10.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.459, allocations: 1.365 MB / 0.5399 GB, free: 9.438 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.4612, allocations: 1.93 MB / 0.5418 GB, free: 7.492 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4613, allocations: 484.7 kB / 0.5423 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002923/0.4642, allocations: 1.673 MB / 0.5439 GB, free: 5.336 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006443/0.4707, allocations: 9.089 MB / 0.5528 GB, free: 8.977 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/0.4813, allocations: 11.73 MB / 0.5642 GB, free: 10.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.75e-05/0.4814, allocations: 48 kB / 0.5643 GB, free: 10.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=1186) (initialization): time 0.02361/0.505, allocations: 12.34 MB / 0.5763 GB, free: 14.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.966e-05/0.5051, allocations: 82.34 kB / 0.5764 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/0.5053, allocations: 177.1 kB / 0.5766 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01297/0.5182, allocations: 4.851 MB / 0.5813 GB, free: 9.594 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004988/0.5232, allocations: 2.121 MB / 0.5834 GB, free: 7.465 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.5365, allocations: 9.382 MB / 0.5926 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006672/0.5432, allocations: 0.6229 MB / 0.5932 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/0.5443, allocations: 0.5078 MB / 0.5937 GB, free: 12.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * 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 (1095): * Single equations (assignments): 1087 * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002658/0.5469, allocations: 0.8675 MB / 0.5945 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/0.5479, allocations: 0.5593 MB / 0.595 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01519/0.5631, allocations: 7.294 MB / 0.6022 GB, free: 3.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.694e-05/0.5632, allocations: 59.03 kB / 0.6022 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.5632, allocations: 8 kB / 0.6022 GB, free: 3.848 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.537e-05/0.5632, allocations: 16.81 kB / 0.6023 GB, free: 3.832 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2344/0.7977, allocations: 15.83 MB / 0.6177 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/0.7977, allocations: 2.75 kB / 0.6177 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/0.7994, allocations: 0.5895 MB / 0.6183 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01129/0.8107, allocations: 4.257 MB / 0.6224 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003235/0.811, allocations: 57.53 kB / 0.6225 GB, free: 134.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009956/0.821, allocations: 8.161 MB / 0.6305 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.821, allocations: 7.844 kB / 0.6305 GB, free: 130.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/0.8374, allocations: 8.402 MB / 0.6387 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/0.8396, allocations: 1.106 MB / 0.6398 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/0.8401, allocations: 60.25 kB / 0.6398 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/0.8419, allocations: 315 kB / 0.6401 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006461/0.8425, allocations: 206.9 kB / 0.6403 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001934/0.8427, allocations: 89.31 kB / 0.6404 GB, free: 128.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002932/0.8457, allocations: 2.037 MB / 0.6424 GB, free: 127.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 8e-08/0.8457, allocations: 0 / 0.6424 GB, free: 127.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006176/0.8518, allocations: 1.905 MB / 0.6443 GB, free: 126.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (257): * Single equations (assignments): 249 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006054/0.8525, allocations: 232.8 kB / 0.6445 GB, free: 126.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008483/0.8609, allocations: 5.9 MB / 0.6502 GB, free: 121 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.8609, allocations: 4 kB / 0.6502 GB, free: 121 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/0.8636, allocations: 1.967 MB / 0.6522 GB, free: 119 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/0.8664, allocations: 0.5476 MB / 0.6527 GB, free: 118.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.8821, allocations: 12.57 MB / 0.665 GB, free: 105.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.8836, allocations: 1.88 MB / 0.6668 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003806/0.8874, allocations: 2.375 MB / 0.6691 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00097/0.8883, allocations: 340.4 kB / 0.6695 GB, free: 101.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.384e-06/0.8883, allocations: 2.531 kB / 0.6695 GB, free: 101.3 MB / 458.7 MB Notification: Performance of Templates: time 0.08561/0.9739, allocations: 75.82 MB / 0.7435 GB, free: 25.41 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 5.206968704937026]