Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.001046/0.001046, allocations: 80.41 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.001199/0.001199, allocations: 170 kB / 25.61 MB, free: 8.906 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.9551/0.9551, allocations: 177.1 MB / 206 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1449/0.1449, allocations: 32.79 MB / 295.4 MB, free: 15.39 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/3.033e-05, allocations: 2.312 kB / 377.2 MB, free: 25.61 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01136/0.01139, allocations: 11.35 MB / 388.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009835/0.02122, allocations: 4.202 MB / 392.8 MB, free: 9.996 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.02309, allocations: 87.56 kB / 392.9 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.02591, allocations: 2.893 MB / 395.8 MB, free: 7.008 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005086/0.031, allocations: 2.119 MB / 397.9 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.03249, allocations: 1.018 MB / 398.9 MB, free: 3.859 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00543/0.03792, allocations: 6.411 MB / 405.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003802/0.04172, allocations: 3.451 MB / 408.8 MB, free: 9.934 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004057/0.04578, allocations: 3.63 MB / 412.4 MB, free: 6.297 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003303/0.04908, allocations: 2.818 MB / 415.2 MB, free: 3.473 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007267/0.04981, allocations: 396 kB / 415.6 MB, free: 3.086 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.05146, allocations: 1.353 MB / 417 MB, free: 1.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.05287, allocations: 2.353 MB / 419.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001576/0.05444, allocations: 1.457 MB / 420.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004432/0.05888, allocations: 5.337 MB / 426.1 MB, free: 8.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.05888, allocations: 0 / 426.1 MB, free: 8.555 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.05888, allocations: 0 / 426.1 MB, free: 8.555 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.394e-05/0.05894, allocations: 3.938 kB / 426.1 MB, free: 8.551 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.005955/0.0649, allocations: 5.592 MB / 431.7 MB, free: 2.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.06494, allocations: 11.98 kB / 431.7 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005172/0.07012, allocations: 2.023 MB / 433.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.073, allocations: 2.464 MB / 436.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.07311, allocations: 242.4 kB / 436.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003961/0.07351, allocations: 324.3 kB / 436.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006378/0.07989, allocations: 6.02 MB / 442.8 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.659e-05/0.07996, allocations: 51.53 kB / 442.8 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/0.08022, allocations: 151.8 kB / 443 MB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/0.08167, allocations: 1.791 MB / 444.8 MB, free: 4.746 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004917/0.08659, allocations: 2.922 MB / 447.7 MB, free: 1.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.031/0.1176, allocations: 44.62 MB / 492.3 MB, free: 3.727 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004545/0.1221, allocations: 1.923 MB / 494.2 MB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007191/0.1229, allocations: 484.4 kB / 494.7 MB, free: 1.258 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.17/0.2928, allocations: 4.423 MB / 499.1 MB, free: 112.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.2929, allocations: 51.36 kB / 499.2 MB, free: 112.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 5.36e-06/0.2929, allocations: 0 / 499.2 MB, free: 112.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=200): time 0.02149/0.3144, allocations: 8.883 MB / 0.4961 GB, free: 112.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.3144, allocations: 204.6 kB / 0.4963 GB, free: 112.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.3172, allocations: 3.755 MB / 0.5 GB, free: 111 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.872e-05/0.3173, allocations: 52.39 kB / 0.5001 GB, free: 111 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.3184, allocations: 3.561 MB / 0.5035 GB, free: 108.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003768/0.3188, allocations: 0.8242 MB / 0.5043 GB, free: 107.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009832/0.3198, allocations: 1.407 MB / 0.5057 GB, free: 106.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.777e-05/0.3198, allocations: 476.8 kB / 0.5062 GB, free: 106.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009503/0.3208, allocations: 0.7231 MB / 0.5069 GB, free: 105.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/0.3237, allocations: 6.434 MB / 0.5132 GB, free: 96.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005343/0.329, allocations: 7.729 MB / 0.5207 GB, free: 86.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.992e-05/0.3291, allocations: 42.12 kB / 0.5207 GB, free: 86.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.009243/0.3384, allocations: 5.706 MB / 0.5263 GB, free: 81.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.212e-05/0.3384, allocations: 67.98 kB / 0.5264 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.3386, allocations: 132 kB / 0.5265 GB, free: 80.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/0.341, allocations: 0.9659 MB / 0.5275 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.3439, allocations: 1.427 MB / 0.5288 GB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004807/0.3487, allocations: 5.939 MB / 0.5346 GB, free: 72.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004233/0.3529, allocations: 287.7 kB / 0.5349 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006525/0.3536, allocations: 332 kB / 0.5352 GB, free: 71.74 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.001669/0.3553, allocations: 0.676 MB / 0.5359 GB, free: 71.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007527/0.356, allocations: 421.5 kB / 0.5363 GB, free: 70.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.359, allocations: 1.866 MB / 0.5381 GB, free: 68.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.359, allocations: 24 kB / 0.5381 GB, free: 68.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.359, allocations: 7.719 kB / 0.5382 GB, free: 68.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.359, allocations: 15.97 kB / 0.5382 GB, free: 68.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008847/0.3679, allocations: 5.47 MB / 0.5435 GB, free: 63.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.3679, allocations: 8 kB / 0.5435 GB, free: 63.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.3687, allocations: 280.3 kB / 0.5438 GB, free: 62.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00217/0.3709, allocations: 0.7397 MB / 0.5445 GB, free: 62.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.371, allocations: 36 kB / 0.5445 GB, free: 62.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003796/0.3748, allocations: 5.295 MB / 0.5497 GB, free: 56.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.3748, allocations: 11.94 kB / 0.5497 GB, free: 56.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003927/0.3787, allocations: 2.993 MB / 0.5526 GB, free: 53.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.3798, allocations: 349.5 kB / 0.553 GB, free: 53.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003924/0.3802, allocations: 39.98 kB / 0.553 GB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008429/0.381, allocations: 40 kB / 0.5531 GB, free: 52.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/0.3812, allocations: 140.5 kB / 0.5532 GB, free: 52.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.3813, allocations: 47.98 kB / 0.5532 GB, free: 52.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001453/0.3828, allocations: 1.531 MB / 0.5547 GB, free: 51.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3828, allocations: 4.031 kB / 0.5547 GB, free: 51.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00378/0.3866, allocations: 1.187 MB / 0.5559 GB, free: 50.08 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.0003555/0.3869, allocations: 190.8 kB / 0.5561 GB, free: 49.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003871/0.3908, allocations: 3.2 MB / 0.5592 GB, free: 46.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.892e-06/0.3908, allocations: 0 / 0.5592 GB, free: 46.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008818/0.3917, allocations: 0.9046 MB / 0.5601 GB, free: 45.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.3937, allocations: 457.8 kB / 0.5605 GB, free: 45.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.405, allocations: 8.284 MB / 0.5686 GB, free: 36.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00172/0.4068, allocations: 1.336 MB / 0.5699 GB, free: 35.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001617/0.4084, allocations: 0.5221 MB / 0.5704 GB, free: 34.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008382/0.4092, allocations: 0.627 MB / 0.571 GB, free: 34.35 MB / 410.7 MB Notification: Performance of SimCode: time 2.725e-06/0.4092, allocations: 3.938 kB / 0.571 GB, free: 34.34 MB / 410.7 MB Notification: Performance of Templates: time 0.05598/0.4652, allocations: 43.3 MB / 0.6133 GB, free: 7.504 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.586010305210948]