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.001386/0.001386, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001584/0.001584, allocations: 166.8 kB / 25.61 MB, free: 8.582 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 0.9836/0.9836, allocations: 177 MB / 205.9 MB, free: 4.457 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.1581/0.1581, allocations: 34.88 MB / 297.4 MB, free: 13.32 MB / 282.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 1.463e-06/1.463e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.31e-05, allocations: 5.047 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.007861/0.007884, allocations: 11.34 MB / 391.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007488/0.01537, allocations: 4.21 MB / 395.5 MB, free: 7.137 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.01763, allocations: 95.5 kB / 395.6 MB, free: 7.043 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002967/0.02059, allocations: 2.881 MB / 398.5 MB, free: 4.152 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.02467, allocations: 2.123 MB / 400.6 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.02637, allocations: 1.014 MB / 401.7 MB, free: 1.004 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009824/0.0362, allocations: 6.415 MB / 408.1 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004351/0.04055, allocations: 3.439 MB / 411.5 MB, free: 7.082 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006551/0.0471, allocations: 3.634 MB / 415.1 MB, free: 3.441 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004283/0.05138, allocations: 2.822 MB / 418 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001262/0.05264, allocations: 392 kB / 418.3 MB, free: 236 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002854/0.0555, allocations: 1.357 MB / 419.7 MB, free: 14.87 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002817/0.05832, allocations: 2.349 MB / 422.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002877/0.06119, allocations: 1.46 MB / 423.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007144/0.06834, allocations: 5.333 MB / 428.8 MB, free: 5.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.06834, allocations: 3.938 kB / 428.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.06835, allocations: 0 / 428.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002309/0.06858, allocations: 4 kB / 428.9 MB, free: 5.691 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.008175/0.07675, allocations: 5.592 MB / 434.4 MB, free: 24 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.07679, allocations: 8.031 kB / 434.5 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005988/0.08278, allocations: 2.019 MB / 436.5 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004626/0.08741, allocations: 2.468 MB / 438.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.08757, allocations: 238.5 kB / 439.2 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00074/0.08831, allocations: 332.3 kB / 439.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.0991, allocations: 6.012 MB / 445.5 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.09925, allocations: 47.58 kB / 445.6 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004878/0.09974, allocations: 151.9 kB / 445.7 MB, free: 3.695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001666/0.1014, allocations: 1.787 MB / 447.5 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007249/0.1087, allocations: 2.923 MB / 450.4 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03822/0.1469, allocations: 44.62 MB / 495 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1829/0.3298, allocations: 1.92 MB / 497 MB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000803/0.3306, allocations: 481.7 kB / 497.4 MB, free: 110.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006923/0.3375, allocations: 4.427 MB / 0.4901 GB, free: 109.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.3375, allocations: 57.42 kB / 0.4901 GB, free: 109.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 4.108e-06/0.3375, allocations: 3.531 kB / 0.4902 GB, free: 109.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.02303/0.3606, allocations: 8.884 MB / 0.4988 GB, free: 109 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3606, allocations: 203.2 kB / 0.499 GB, free: 108.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003233/0.3638, allocations: 3.744 MB / 0.5027 GB, free: 106.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.364, allocations: 56.97 kB / 0.5027 GB, free: 106.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001477/0.3655, allocations: 3.565 MB / 0.5062 GB, free: 103.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005883/0.3661, allocations: 0.8214 MB / 0.507 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/0.3672, allocations: 1.411 MB / 0.5084 GB, free: 101.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.3672, allocations: 480.7 kB / 0.5088 GB, free: 101.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.3682, allocations: 0.7192 MB / 0.5096 GB, free: 100.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/0.3707, allocations: 6.438 MB / 0.5158 GB, free: 91.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/0.375, allocations: 7.731 MB / 0.5234 GB, free: 81.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.956e-05/0.3751, allocations: 38.88 kB / 0.5234 GB, free: 81.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.008727/0.3839, allocations: 5.705 MB / 0.529 GB, free: 75.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.3839, allocations: 66.91 kB / 0.5291 GB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/0.384, allocations: 136 kB / 0.5292 GB, free: 75.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.3865, allocations: 0.959 MB / 0.5301 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.389, allocations: 1.431 MB / 0.5315 GB, free: 73.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004995/0.394, allocations: 5.948 MB / 0.5373 GB, free: 67.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/0.3983, allocations: 283.6 kB / 0.5376 GB, free: 66.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004361/0.3988, allocations: 334.1 kB / 0.5379 GB, free: 66.5 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.001447/0.4002, allocations: 0.6843 MB / 0.5386 GB, free: 65.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006271/0.4008, allocations: 421.6 kB / 0.539 GB, free: 65.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.4036, allocations: 1.854 MB / 0.5408 GB, free: 63.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.4036, allocations: 20 kB / 0.5408 GB, free: 63.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.4036, allocations: 11.98 kB / 0.5408 GB, free: 63.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4036, allocations: 7.969 kB / 0.5408 GB, free: 63.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00806/0.4117, allocations: 5.487 MB / 0.5462 GB, free: 57.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.4117, allocations: 4 kB / 0.5462 GB, free: 57.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.4124, allocations: 278.7 kB / 0.5465 GB, free: 57.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.4144, allocations: 0.7455 MB / 0.5472 GB, free: 56.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.4145, allocations: 43.94 kB / 0.5472 GB, free: 56.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003774/0.4183, allocations: 5.281 MB / 0.5524 GB, free: 51.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4183, allocations: 12 kB / 0.5524 GB, free: 51.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004107/0.4224, allocations: 2.991 MB / 0.5553 GB, free: 48.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009779/0.4234, allocations: 361.3 kB / 0.5557 GB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.4238, allocations: 44.03 kB / 0.5557 GB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009297/0.4247, allocations: 45.89 kB / 0.5558 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/0.425, allocations: 128.7 kB / 0.5559 GB, free: 47.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/0.4251, allocations: 47.98 kB / 0.5559 GB, free: 47.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001635/0.4267, allocations: 1.531 MB / 0.5574 GB, free: 46.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4267, allocations: 0 / 0.5574 GB, free: 46.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005371/0.4321, allocations: 1.18 MB / 0.5586 GB, free: 44.84 MB / 410.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.0005055/0.4326, allocations: 198.7 kB / 0.5588 GB, free: 44.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004669/0.4373, allocations: 3.19 MB / 0.5619 GB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.4373, allocations: 0 / 0.5619 GB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.4384, allocations: 0.9116 MB / 0.5628 GB, free: 40.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002615/0.441, allocations: 456.8 kB / 0.5632 GB, free: 40.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.4518, allocations: 8.286 MB / 0.5713 GB, free: 31.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/0.4529, allocations: 1.328 MB / 0.5726 GB, free: 30.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001549/0.4545, allocations: 0.5249 MB / 0.5731 GB, free: 29.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007807/0.4553, allocations: 0.627 MB / 0.5737 GB, free: 29.09 MB / 410.7 MB Notification: Performance of SimCode: time 1.733e-06/0.4553, allocations: 8 kB / 0.5737 GB, free: 29.09 MB / 410.7 MB Notification: Performance of Templates: time 0.06796/0.5232, allocations: 43.31 MB / 0.616 GB, free: 2.258 MB / 426.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.863203434273601]