Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.0009898/0.0009898, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.001845/0.001845, allocations: 169.7 kB / 24.82 MB, free: 9.273 MB / 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.007/1.007, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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.2976/0.2976, allocations: 34.87 MB / 296.6 MB, free: 0.4922 MB / 266.7 MB " [Timeout remaining time 180] 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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 379.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.538e-05/2.774e-05, allocations: 2.312 kB / 379.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01248/0.01251, allocations: 11.36 MB / 390.6 MB, free: 6.43 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.02303, allocations: 4.209 MB / 394.8 MB, free: 2.207 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003365/0.0264, allocations: 87.56 kB / 394.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004849/0.03125, allocations: 2.885 MB / 397.7 MB, free: 15.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005502/0.03675, allocations: 2.119 MB / 399.9 MB, free: 13.1 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.03843, allocations: 1.021 MB / 400.9 MB, free: 12.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006472/0.04491, allocations: 6.411 MB / 407.3 MB, free: 5.652 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004172/0.04908, allocations: 3.439 MB / 410.7 MB, free: 2.164 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005602/0.05468, allocations: 3.641 MB / 414.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003678/0.05836, allocations: 2.814 MB / 417.2 MB, free: 11.7 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001212/0.05957, allocations: 392 kB / 417.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002636/0.0622, allocations: 1.357 MB / 418.9 MB, free: 9.953 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002523/0.06473, allocations: 2.345 MB / 421.3 MB, free: 7.602 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003242/0.06797, allocations: 1.46 MB / 422.7 MB, free: 6.137 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008125/0.07609, allocations: 5.333 MB / 428.1 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.0761, allocations: 0 / 428.1 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.0761, allocations: 0 / 428.1 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002644/0.07637, allocations: 0 / 428.1 MB, free: 0.7852 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.008617/0.08498, allocations: 5.596 MB / 433.7 MB, free: 11.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.08503, allocations: 8.031 kB / 433.7 MB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005531/0.09056, allocations: 2.019 MB / 435.7 MB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/0.09467, allocations: 2.468 MB / 438.2 MB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.09483, allocations: 234.5 kB / 438.4 MB, free: 6.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006077/0.09543, allocations: 344.2 kB / 438.7 MB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1762/0.2716, allocations: 6.008 MB / 444.7 MB, free: 88.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.2718, allocations: 45.61 kB / 444.8 MB, free: 88.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/0.2722, allocations: 152.1 kB / 444.9 MB, free: 88.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001571/0.2737, allocations: 1.792 MB / 446.7 MB, free: 88.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006285/0.28, allocations: 2.912 MB / 449.6 MB, free: 88.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02975/0.3098, allocations: 44.63 MB / 494.3 MB, free: 53.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004296/0.3141, allocations: 1.927 MB / 496.2 MB, free: 53.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.3146, allocations: 479.4 kB / 496.7 MB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005392/0.32, allocations: 4.436 MB / 0.4893 GB, free: 51.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.3201, allocations: 59.55 kB / 0.4894 GB, free: 51.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 4.919e-06/0.3201, allocations: 0 / 0.4894 GB, free: 51.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.02254/0.3426, allocations: 8.883 MB / 0.4981 GB, free: 49.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.3427, allocations: 203.6 kB / 0.4983 GB, free: 49.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003863/0.3465, allocations: 3.754 MB / 0.5019 GB, free: 48.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002233/0.3467, allocations: 51.02 kB / 0.502 GB, free: 48.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001889/0.3486, allocations: 3.559 MB / 0.5055 GB, free: 45.33 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007354/0.3494, allocations: 0.8209 MB / 0.5063 GB, free: 44.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/0.3509, allocations: 1.411 MB / 0.5076 GB, free: 43.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.409e-05/0.3509, allocations: 485.2 kB / 0.5081 GB, free: 43.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.3524, allocations: 0.7193 MB / 0.5088 GB, free: 43.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003915/0.3563, allocations: 6.429 MB / 0.5151 GB, free: 35.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00559/0.3619, allocations: 7.734 MB / 0.5226 GB, free: 26.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.132e-05/0.362, allocations: 43.94 kB / 0.5227 GB, free: 26.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.00956/0.3716, allocations: 5.703 MB / 0.5283 GB, free: 21.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.573e-05/0.3716, allocations: 63.28 kB / 0.5283 GB, free: 21.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.3718, allocations: 132 kB / 0.5284 GB, free: 20.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002862/0.3746, allocations: 0.9705 MB / 0.5294 GB, free: 20.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.3781, allocations: 1.428 MB / 0.5308 GB, free: 19.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005671/0.3837, allocations: 5.95 MB / 0.5366 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004406/0.3881, allocations: 279.7 kB / 0.5369 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006984/0.3888, allocations: 339.9 kB / 0.5372 GB, free: 12.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 609 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (791): * Single equations (assignments): 786 * Array equations: 3 * 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 {(3,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002019/0.3909, allocations: 0.6691 MB / 0.5378 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007873/0.3916, allocations: 417.6 kB / 0.5382 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.3951, allocations: 1.87 MB / 0.5401 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/0.3951, allocations: 24 kB / 0.5401 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3952, allocations: 4 kB / 0.5401 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.3952, allocations: 11.97 kB / 0.5401 GB, free: 9.648 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.4052, allocations: 5.48 MB / 0.5454 GB, free: 3.992 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.4052, allocations: 8 kB / 0.5455 GB, free: 3.984 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008953/0.4061, allocations: 273.6 kB / 0.5457 GB, free: 3.719 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/0.4084, allocations: 0.747 MB / 0.5464 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.4085, allocations: 40 kB / 0.5465 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004662/0.4132, allocations: 5.296 MB / 0.5517 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.4132, allocations: 7.938 kB / 0.5517 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004763/0.418, allocations: 2.994 MB / 0.5546 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.4191, allocations: 361.4 kB / 0.5549 GB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003826/0.4194, allocations: 39.94 kB / 0.555 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000825/0.4203, allocations: 40 kB / 0.555 GB, free: 9.863 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.4205, allocations: 136.6 kB / 0.5551 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-05/0.4206, allocations: 44.05 kB / 0.5552 GB, free: 9.688 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001648/0.4222, allocations: 1.535 MB / 0.5567 GB, free: 8.172 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4222, allocations: 0 / 0.5567 GB, free: 8.172 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00431/0.4265, allocations: 1.187 MB / 0.5578 GB, free: 6.984 MB / 426.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 (153): * Single equations (assignments): 148 * Array equations: 3 * 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 {(3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004349/0.427, allocations: 194.8 kB / 0.558 GB, free: 6.781 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.4315, allocations: 3.202 MB / 0.5612 GB, free: 3.578 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/0.4315, allocations: 7.078 kB / 0.5612 GB, free: 3.574 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.4329, allocations: 0.8967 MB / 0.562 GB, free: 2.656 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.4351, allocations: 463.8 kB / 0.5625 GB, free: 2.215 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.4476, allocations: 8.268 MB / 0.5706 GB, free: 9.754 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/0.449, allocations: 1.328 MB / 0.5718 GB, free: 8.402 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001545/0.4506, allocations: 0.5254 MB / 0.5724 GB, free: 7.871 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000974/0.4516, allocations: 0.6348 MB / 0.573 GB, free: 7.234 MB / 442.7 MB Notification: Performance of SimCode: time 2.004e-06/0.4516, allocations: 0 / 0.573 GB, free: 7.234 MB / 442.7 MB Notification: Performance of Templates: time 0.2174/0.669, allocations: 42.36 MB / 0.6143 GB, free: 137.9 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.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.457232346758246]