Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001771/0.001771, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002261/0.002261, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3722/0.3722, allocations: 34.25 MB / 295.2 MB, free: 0.6641 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.235e-05/3.465e-05, allocations: 6.25 kB / 377.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01941/0.01945, allocations: 13.06 MB / 390.3 MB, free: 5.797 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.0323, allocations: 4.624 MB / 394.9 MB, free: 1.16 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003032/0.03533, allocations: 107.5 kB / 395 MB, free: 1.055 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007592/0.04292, allocations: 3.282 MB / 398.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008306/0.05123, allocations: 2.687 MB / 401 MB, free: 11.06 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.05425, allocations: 1.119 MB / 402.1 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01402/0.06827, allocations: 7.819 MB / 409.9 MB, free: 2.113 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00773/0.076, allocations: 4.227 MB / 414.1 MB, free: 13.82 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01129/0.08729, allocations: 3.367 MB / 417.5 MB, free: 10.44 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007742/0.09503, allocations: 3.616 MB / 421.1 MB, free: 6.816 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002425/0.09746, allocations: 0.4922 MB / 421.6 MB, free: 6.324 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004656/0.1021, allocations: 1.471 MB / 423.1 MB, free: 4.852 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004911/0.107, allocations: 3.05 MB / 426.1 MB, free: 1.793 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00524/0.1123, allocations: 1.857 MB / 428 MB, free: 15.93 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/0.1298, allocations: 10.59 MB / 438.6 MB, free: 5.305 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1298, allocations: 0 / 438.6 MB, free: 5.305 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.1298, allocations: 0 / 438.6 MB, free: 5.305 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004435/0.1302, allocations: 4 kB / 438.6 MB, free: 5.301 MB / 410.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.2502/0.3804, allocations: 7.451 MB / 446 MB, free: 96.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3804, allocations: 10.69 kB / 446 MB, free: 96.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01672/0.3971, allocations: 4.804 MB / 450.8 MB, free: 95.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009101/0.4062, allocations: 4.081 MB / 454.9 MB, free: 94.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/0.4065, allocations: 318.4 kB / 455.2 MB, free: 94.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002005/0.4085, allocations: 435.8 kB / 455.7 MB, free: 94.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0246/0.4331, allocations: 15.91 MB / 471.6 MB, free: 87.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00021/0.4333, allocations: 59.81 kB / 471.6 MB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008831/0.4342, allocations: 206.8 kB / 471.8 MB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004761/0.439, allocations: 3.231 MB / 475.1 MB, free: 86.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/0.4683, allocations: 14.22 MB / 489.3 MB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0638/0.5321, allocations: 54.11 MB / 0.5307 GB, free: 24.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.544, allocations: 5.495 MB / 0.536 GB, free: 19.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004261/0.5482, allocations: 3.442 MB / 0.5394 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02185/0.5701, allocations: 12.61 MB / 0.5517 GB, free: 3.188 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.5701, allocations: 60.56 kB / 0.5518 GB, free: 3.121 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.813e-06/0.5701, allocations: 0 / 0.5518 GB, free: 3.121 MB / 410.7 MB Notification: Performance of matching and sorting (n=343): time 0.1759/0.746, allocations: 49.33 MB / 0.5999 GB, free: 1.773 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/0.7462, allocations: 210 kB / 0.6001 GB, free: 1.523 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2334/0.9796, allocations: 5.345 MB / 0.6053 GB, free: 131.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000978/0.9806, allocations: 75.56 kB / 0.6054 GB, free: 131.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002492/0.9831, allocations: 4.491 MB / 0.6098 GB, free: 129.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00182/0.9849, allocations: 1.309 MB / 0.6111 GB, free: 128.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003409/0.9883, allocations: 1.828 MB / 0.6129 GB, free: 127.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.761e-05/0.9884, allocations: 308.1 kB / 0.6132 GB, free: 126.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006829/0.9952, allocations: 5.002 MB / 0.618 GB, free: 125.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/1.005, allocations: 10 MB / 0.6278 GB, free: 116.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01854/1.024, allocations: 15.92 MB / 0.6434 GB, free: 105.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002766/1.024, allocations: 48.47 kB / 0.6434 GB, free: 105.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.05327/1.077, allocations: 20.8 MB / 0.6637 GB, free: 98.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000292/1.078, allocations: 76.28 kB / 0.6638 GB, free: 98.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003249/1.078, allocations: 171.6 kB / 0.664 GB, free: 98.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02576/1.104, allocations: 7.676 MB / 0.6714 GB, free: 94.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007495/1.111, allocations: 2.128 MB / 0.6735 GB, free: 92.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0319/1.143, allocations: 27.45 MB / 0.7003 GB, free: 65.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008274/1.151, allocations: 0.663 MB / 0.701 GB, free: 64.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001885/1.153, allocations: 0.5039 MB / 0.7015 GB, free: 64.35 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 783 * 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 (1090): * Single equations (assignments): 1082 * 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.006575/1.16, allocations: 3.087 MB / 0.7045 GB, free: 61.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002385/1.162, allocations: 0.5631 MB / 0.705 GB, free: 60.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03117/1.193, allocations: 13.81 MB / 0.7185 GB, free: 46.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.282e-05/1.193, allocations: 59.98 kB / 0.7186 GB, free: 46.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.505e-05/1.193, allocations: 18.61 kB / 0.7186 GB, free: 46.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.818e-05/1.194, allocations: 11.95 kB / 0.7186 GB, free: 46.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05447/1.248, allocations: 23.74 MB / 0.7418 GB, free: 22.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-05/1.248, allocations: 4 kB / 0.7418 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/1.251, allocations: 0.6012 MB / 0.7424 GB, free: 21.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02241/1.274, allocations: 6.706 MB / 0.7489 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007887/1.274, allocations: 58.19 kB / 0.749 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2135/1.488, allocations: 22.54 MB / 0.771 GB, free: 133.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/1.488, allocations: 13.81 kB / 0.771 GB, free: 133.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05209/1.54, allocations: 18.84 MB / 0.7894 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/1.542, allocations: 472.8 kB / 0.7899 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/1.544, allocations: 56.2 kB / 0.7899 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003297/1.547, allocations: 351.6 kB / 0.7903 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008648/1.548, allocations: 199.5 kB / 0.7904 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002912/1.548, allocations: 89.92 kB / 0.7905 GB, free: 127.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004138/1.552, allocations: 3.115 MB / 0.7936 GB, free: 126.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/1.552, allocations: 0 / 0.7936 GB, free: 126.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007975/1.56, allocations: 1.893 MB / 0.7954 GB, free: 126.5 MB / 474.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 (258): * Single equations (assignments): 250 * 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.0007666/1.561, allocations: 226.7 kB / 0.7956 GB, free: 126.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01838/1.579, allocations: 10.93 MB / 0.8063 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/1.579, allocations: 1.375 kB / 0.8063 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005792/1.585, allocations: 4.031 MB / 0.8102 GB, free: 120.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006031/1.591, allocations: 0.5453 MB / 0.8108 GB, free: 120.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/1.622, allocations: 16.6 MB / 0.827 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0074/1.629, allocations: 4.126 MB / 0.831 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007421/1.636, allocations: 2.917 MB / 0.8339 GB, free: 107.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.638, allocations: 338.8 kB / 0.8342 GB, free: 107 MB / 474.7 MB Notification: Performance of SimCode: time 1.653e-06/1.638, allocations: 4 kB / 0.8342 GB, free: 107 MB / 474.7 MB Notification: Performance of Templates: time 0.1322/1.771, allocations: 77.43 MB / 0.9098 GB, free: 32.57 MB / 474.7 MB " [Timeout remaining time 658] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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: 8.642769668949768]