Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 108.9 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3319/0.3319, allocations: 44.14 MB / 386.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 59.89 kB / 457.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2995, allocations: 60.79 MB / 0.5064 GB, free: 38.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.04299/0.3425, allocations: 62.36 MB / 0.5673 GB, free: 9.691 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03546/0.3781, allocations: 12.93 MB / 0.5799 GB, free: 1.059 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01519/0.3933, allocations: 280.8 kB / 0.5802 GB, free: 1.012 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008198/0.4016, allocations: 3.729 MB / 0.5838 GB, free: 15.28 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006731/0.4084, allocations: 2.053 MB / 0.5858 GB, free: 13.95 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.4112, allocations: 1.003 MB / 0.5868 GB, free: 13.17 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01158/0.4228, allocations: 9.14 MB / 0.5957 GB, free: 4.375 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006424/0.4292, allocations: 4.429 MB / 0.6001 GB, free: 15.88 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003744/0.433, allocations: 1.806 MB / 0.6018 GB, free: 14.06 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004483/0.4375, allocations: 2.944 MB / 0.6047 GB, free: 11.11 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.4389, allocations: 292 kB / 0.605 GB, free: 10.82 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003572/0.4425, allocations: 1.404 MB / 0.6063 GB, free: 9.418 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003014/0.4455, allocations: 2.365 MB / 0.6087 GB, free: 7.047 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004849/0.4504, allocations: 2.664 MB / 0.6113 GB, free: 4.367 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009721/0.4601, allocations: 8.458 MB / 0.6195 GB, free: 11.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4602, allocations: 0 / 0.6195 GB, free: 11.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4602, allocations: 0 / 0.6195 GB, free: 11.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002668/0.4604, allocations: 0 / 0.6195 GB, free: 11.88 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01421/0.4747, allocations: 6.246 MB / 0.6256 GB, free: 5.562 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4747, allocations: 11.97 kB / 0.6256 GB, free: 5.551 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01071/0.4854, allocations: 2.521 MB / 0.6281 GB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009375/0.4948, allocations: 3.949 MB / 0.6319 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000246/0.4951, allocations: 287.6 kB / 0.6322 GB, free: 14.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4964, allocations: 387.6 kB / 0.6326 GB, free: 14.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02319/0.5196, allocations: 12.01 MB / 0.6443 GB, free: 1.559 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002558/0.5199, allocations: 59.42 kB / 0.6444 GB, free: 1.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001206/0.5211, allocations: 179.9 kB / 0.6445 GB, free: 1.324 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00321/0.5243, allocations: 2.14 MB / 0.6466 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.5434, allocations: 10.36 MB / 0.6568 GB, free: 4.809 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.313/0.8564, allocations: 47.49 MB / 0.7031 GB, free: 102.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01328/0.8698, allocations: 5.823 MB / 0.7088 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00305/0.8729, allocations: 2.977 MB / 0.7117 GB, free: 98.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.8863, allocations: 8.869 MB / 0.7204 GB, free: 94.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.8864, allocations: 62.09 kB / 0.7204 GB, free: 94.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=206): time 4.679e-06/0.8864, allocations: 1.156 kB / 0.7204 GB, free: 94.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=262): time 0.1163/1.003, allocations: 34.93 MB / 0.7546 GB, free: 79.72 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.668e-05/1.003, allocations: 209.9 kB / 0.7548 GB, free: 79.47 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006922/1.01, allocations: 4.773 MB / 0.7594 GB, free: 74.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005612/1.01, allocations: 61.7 kB / 0.7595 GB, free: 74.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001949/1.012, allocations: 3.546 MB / 0.7629 GB, free: 71.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.013, allocations: 0.976 MB / 0.7639 GB, free: 70.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001993/1.015, allocations: 1.412 MB / 0.7653 GB, free: 68.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.521e-05/1.015, allocations: 305.1 kB / 0.7656 GB, free: 68.39 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003338/1.019, allocations: 3.172 MB / 0.7687 GB, free: 65.22 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004523/1.023, allocations: 7.039 MB / 0.7755 GB, free: 56.29 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008913/1.032, allocations: 10.95 MB / 0.7862 GB, free: 43.45 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.986e-05/1.032, allocations: 39.94 kB / 0.7863 GB, free: 43.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02248/1.055, allocations: 13.75 MB / 0.7997 GB, free: 29.65 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.482e-05/1.055, allocations: 63.98 kB / 0.7998 GB, free: 29.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.645e-05/1.055, allocations: 136 kB / 0.7999 GB, free: 29.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01163/1.067, allocations: 4.378 MB / 0.8042 GB, free: 25.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004717/1.071, allocations: 1.482 MB / 0.8056 GB, free: 23.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03249/1.104, allocations: 26.86 MB / 0.8318 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005445/1.109, allocations: 407.3 kB / 0.8322 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000702/1.11, allocations: 408 kB / 0.8326 GB, free: 11.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.003593/1.114, allocations: 2.475 MB / 0.835 GB, free: 9.062 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007335/1.114, allocations: 442.3 kB / 0.8355 GB, free: 8.625 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01749/1.132, allocations: 8.485 MB / 0.8437 GB, free: 112 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.446e-05/1.132, allocations: 28 kB / 0.8438 GB, free: 84 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.973e-05/1.132, allocations: 12 kB / 0.8438 GB, free: 72 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-05/1.132, allocations: 11.95 kB / 0.8438 GB, free: 60 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03321/1.165, allocations: 17.07 MB / 0.8605 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.697e-05/1.165, allocations: 8 kB / 0.8605 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/1.167, allocations: 304.1 kB / 0.8608 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01155/1.178, allocations: 4.093 MB / 0.8648 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003218/1.179, allocations: 54.66 kB / 0.8648 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2629/1.442, allocations: 25.66 MB / 0.8899 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.442, allocations: 6.562 kB / 0.8899 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1865/1.628, allocations: 114.7 MB / 1.002 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008507/1.629, allocations: 498.7 kB / 1.002 GB, free: 73.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005777/1.63, allocations: 48 kB / 1.002 GB, free: 73.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/1.632, allocations: 167.8 kB / 1.003 GB, free: 72.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007226/1.632, allocations: 194.1 kB / 1.003 GB, free: 72.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/1.633, allocations: 75.61 kB / 1.003 GB, free: 72.64 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00345/1.636, allocations: 3.013 MB / 1.006 GB, free: 69.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/1.636, allocations: 0 / 1.006 GB, free: 69.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007728/1.644, allocations: 2.044 MB / 1.008 GB, free: 67.6 MB / 0.5261 GB 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005502/1.644, allocations: 188.2 kB / 1.008 GB, free: 67.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01148/1.656, allocations: 8.427 MB / 1.016 GB, free: 58.98 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.639e-06/1.656, allocations: 4.938 kB / 1.016 GB, free: 58.97 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005242/1.661, allocations: 3.573 MB / 1.02 GB, free: 55.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005374/1.667, allocations: 0.5531 MB / 1.02 GB, free: 54.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/1.696, allocations: 17.8 MB / 1.038 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007516/1.703, allocations: 4.029 MB / 1.042 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005796/1.709, allocations: 2.018 MB / 1.044 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.71, allocations: 287.4 kB / 1.044 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.002e-06/1.71, allocations: 0 / 1.044 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.3533/2.064, allocations: 99.35 MB / 1.141 GB, free: 117.4 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches