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.0009782/0.0009782, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.0009735/0.0009735, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.9651/0.9651, allocations: 177 MB / 205.2 MB, free: 5.02 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.2673/0.2673, allocations: 34.86 MB / 296.6 MB, free: 460 kB / 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.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 1.292e-06/1.292e-06, allocations: 0 / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.832e-05/1.962e-05, allocations: 4.703 kB / 325.9 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0104/0.01042, allocations: 14.13 MB / 340.1 MB, free: 8.938 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008397/0.01881, allocations: 4.904 MB / 345 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.02044, allocations: 107.5 kB / 345.1 MB, free: 3.914 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003654/0.02409, allocations: 3.328 MB / 348.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004542/0.02863, allocations: 2.691 MB / 351.1 MB, free: 13.87 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.03021, allocations: 1.107 MB / 352.2 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006906/0.03711, allocations: 7.803 MB / 360 MB, free: 4.953 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.04037, allocations: 4.114 MB / 364.1 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003911/0.04428, allocations: 4.347 MB / 368.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003078/0.04736, allocations: 3.418 MB / 371.9 MB, free: 8.965 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005902/0.04795, allocations: 488 kB / 372.4 MB, free: 8.488 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.04966, allocations: 1.506 MB / 373.9 MB, free: 6.98 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.05151, allocations: 3.058 MB / 376.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001496/0.05301, allocations: 1.853 MB / 378.8 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0054/0.05841, allocations: 6.866 MB / 385.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.05841, allocations: 0 / 385.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.05841, allocations: 0 / 385.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000305/0.05872, allocations: 0 / 385.7 MB, free: 11.16 MB / 362.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.008758/0.06748, allocations: 6.571 MB / 392.2 MB, free: 4.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.06751, allocations: 8.031 kB / 392.2 MB, free: 4.516 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004725/0.07224, allocations: 1.819 MB / 394.1 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003433/0.07567, allocations: 2.819 MB / 396.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.07583, allocations: 324.3 kB / 397.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005597/0.07639, allocations: 420.3 kB / 397.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007775/0.08417, allocations: 7.336 MB / 404.9 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.08427, allocations: 51.58 kB / 405 MB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003807/0.08465, allocations: 203.8 kB / 405.2 MB, free: 6.547 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002334/0.08699, allocations: 2.865 MB / 408 MB, free: 3.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006769/0.09375, allocations: 3.933 MB / 412 MB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2091/0.3029, allocations: 43.34 MB / 455.3 MB, free: 77.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006799/0.3097, allocations: 2.571 MB / 457.9 MB, free: 76.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.3109, allocations: 0.7294 MB / 458.6 MB, free: 76.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0107/0.3216, allocations: 6.649 MB / 465.3 MB, free: 76.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.3216, allocations: 63.41 kB / 465.3 MB, free: 76.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=272): time 7.093e-06/0.3216, allocations: 3 kB / 465.3 MB, free: 76.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=303): time 0.02916/0.3508, allocations: 9.905 MB / 475.2 MB, free: 73.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.3509, allocations: 216 kB / 475.5 MB, free: 72.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004603/0.3555, allocations: 4.325 MB / 479.8 MB, free: 69.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002544/0.3557, allocations: 62.58 kB / 479.8 MB, free: 69.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.3573, allocations: 4.339 MB / 484.2 MB, free: 65.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007709/0.3581, allocations: 1.166 MB / 485.3 MB, free: 64.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001595/0.3597, allocations: 1.672 MB / 487 MB, free: 63.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.395e-05/0.3597, allocations: 301.1 kB / 487.3 MB, free: 62.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.3616, allocations: 1.268 MB / 488.6 MB, free: 61.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002992/0.3646, allocations: 6.26 MB / 494.8 MB, free: 52.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005621/0.3702, allocations: 8.201 MB / 0.4913 GB, free: 42.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/0.3704, allocations: 59.92 kB / 0.4913 GB, free: 42.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.00907/0.3794, allocations: 6.438 MB / 0.4976 GB, free: 36.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.06e-05/0.3795, allocations: 89.14 kB / 0.4977 GB, free: 35.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/0.3796, allocations: 184 kB / 0.4979 GB, free: 35.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.3815, allocations: 0.8299 MB / 0.4987 GB, free: 34.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/0.3858, allocations: 2.078 MB / 0.5007 GB, free: 32.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003875/0.3897, allocations: 4.376 MB / 0.505 GB, free: 28.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004481/0.3942, allocations: 367.7 kB / 0.5053 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009159/0.3951, allocations: 448 kB / 0.5057 GB, free: 27.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * 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 (1108): * Single equations (assignments): 1100 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002855/0.3979, allocations: 0.8287 MB / 0.5066 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007808/0.3987, allocations: 327.7 kB / 0.5069 GB, free: 26.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003015/0.4017, allocations: 2.136 MB / 0.509 GB, free: 24.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.557e-05/0.4018, allocations: 47.98 kB / 0.509 GB, free: 24.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4018, allocations: 4 kB / 0.509 GB, free: 24.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.4018, allocations: 19.95 kB / 0.509 GB, free: 24.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009859/0.4117, allocations: 6.373 MB / 0.5152 GB, free: 17.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.4117, allocations: 8 kB / 0.5153 GB, free: 17.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.4133, allocations: 0.6694 MB / 0.5159 GB, free: 16.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.4148, allocations: 0.5715 MB / 0.5165 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/0.415, allocations: 51.98 kB / 0.5165 GB, free: 16.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002669/0.4177, allocations: 3.425 MB / 0.5199 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4177, allocations: 11.94 kB / 0.5199 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.4219, allocations: 3.124 MB / 0.5229 GB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/0.4233, allocations: 436.8 kB / 0.5233 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005807/0.4239, allocations: 48 kB / 0.5234 GB, free: 8.906 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/0.4252, allocations: 51.98 kB / 0.5234 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/0.4256, allocations: 186.8 kB / 0.5236 GB, free: 8.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/0.4257, allocations: 67.86 kB / 0.5237 GB, free: 8.609 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001901/0.4276, allocations: 1.583 MB / 0.5252 GB, free: 7.031 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4276, allocations: 0 / 0.5252 GB, free: 7.031 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005546/0.4332, allocations: 1.559 MB / 0.5267 GB, free: 5.473 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 (239): * Single equations (assignments): 231 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00049/0.4337, allocations: 195.8 kB / 0.5269 GB, free: 5.273 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005552/0.4392, allocations: 3.902 MB / 0.5307 GB, free: 1.371 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002272/0.4395, allocations: 116.2 kB / 0.5309 GB, free: 1.246 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.4409, allocations: 0.9741 MB / 0.5318 GB, free: 268 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003789/0.4447, allocations: 0.8796 MB / 0.5327 GB, free: 15.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/0.463, allocations: 11.34 MB / 0.5437 GB, free: 3.875 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002514/0.4655, allocations: 1.819 MB / 0.5455 GB, free: 2.023 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002818/0.4683, allocations: 0.7108 MB / 0.5462 GB, free: 1.309 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001851/0.4702, allocations: 0.7394 MB / 0.5469 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4702, allocations: 0 / 0.5469 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of Templates: time 0.07584/0.546, allocations: 51.05 MB / 0.5968 GB, free: 13.88 MB / 490.7 MB " [Timeout remaining time 659] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) [Timeout 240] 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","",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.62166894832626]