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/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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, 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.338/1.338, allocations: 222.9 MB / 241.6 MB, free: 10.98 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.0009934/0.0009936, allocations: 93.67 kB / 291.8 MB, free: 10.96 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.3223/0.3223, allocations: 44.13 MB / 386.1 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 51.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3033, allocations: 60.81 MB / 0.5064 GB, free: 38.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.03157/0.3349, allocations: 46.99 MB / 0.5523 GB, free: 4.527 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.3558, allocations: 10.14 MB / 0.5622 GB, free: 13.78 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01133/0.3672, allocations: 203.8 kB / 0.5624 GB, free: 13.75 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006137/0.3734, allocations: 2.727 MB / 0.565 GB, free: 12.48 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00713/0.3807, allocations: 1.873 MB / 0.5669 GB, free: 11.66 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.3835, allocations: 0.8408 MB / 0.5677 GB, free: 11.32 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01303/0.3965, allocations: 7.94 MB / 0.5754 GB, free: 9.02 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005069/0.4017, allocations: 3.317 MB / 0.5787 GB, free: 5.879 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003399/0.4051, allocations: 1.537 MB / 0.5802 GB, free: 4.336 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004495/0.4096, allocations: 2.679 MB / 0.5828 GB, free: 1.648 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.4109, allocations: 268 kB / 0.5831 GB, free: 1.387 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.4143, allocations: 1.365 MB / 0.5844 GB, free: 20 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002473/0.4168, allocations: 2.1 MB / 0.5864 GB, free: 13.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002691/0.4195, allocations: 2.334 MB / 0.5887 GB, free: 11.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007139/0.4266, allocations: 7.562 MB / 0.5961 GB, free: 3.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4267, allocations: 0 / 0.5961 GB, free: 3.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.47e-06/0.4267, allocations: 0 / 0.5961 GB, free: 3.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001809/0.4269, allocations: 3.938 kB / 0.5961 GB, free: 3.977 MB / 410.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.01361/0.4405, allocations: 5.513 MB / 0.6015 GB, free: 14.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.4405, allocations: 12.03 kB / 0.6015 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01154/0.4521, allocations: 2.471 MB / 0.6039 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008033/0.4602, allocations: 3.36 MB / 0.6072 GB, free: 8.477 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.4604, allocations: 238.5 kB / 0.6074 GB, free: 8.242 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/0.4619, allocations: 331.7 kB / 0.6077 GB, free: 7.918 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.4806, allocations: 10.88 MB / 0.6184 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.4807, allocations: 55.48 kB / 0.6184 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004122/0.4812, allocations: 155.8 kB / 0.6186 GB, free: 12.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002916/0.4841, allocations: 1.998 MB / 0.6205 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.5028, allocations: 9.448 MB / 0.6297 GB, free: 0.625 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05487/0.5577, allocations: 41.23 MB / 0.67 GB, free: 6.184 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.5686, allocations: 4.268 MB / 0.6742 GB, free: 1.773 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2578/0.8264, allocations: 1.929 MB / 0.6761 GB, free: 131.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/0.8375, allocations: 7.606 MB / 0.6835 GB, free: 127.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.07e-05/0.8376, allocations: 58.89 kB / 0.6835 GB, free: 127.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 6.011e-06/0.8376, allocations: 0 / 0.6835 GB, free: 127.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1605/0.9981, allocations: 40.91 MB / 0.7235 GB, free: 117.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.9982, allocations: 203.8 kB / 0.7237 GB, free: 116.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005643/1.004, allocations: 4.306 MB / 0.7279 GB, free: 113.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/1.004, allocations: 65.7 kB / 0.728 GB, free: 113.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/1.006, allocations: 3.168 MB / 0.731 GB, free: 110.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.007, allocations: 0.8842 MB / 0.7319 GB, free: 109.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001867/1.009, allocations: 1.352 MB / 0.7332 GB, free: 107.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/1.009, allocations: 305.1 kB / 0.7335 GB, free: 107.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004113/1.014, allocations: 3.628 MB / 0.7371 GB, free: 104 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005464/1.019, allocations: 7.296 MB / 0.7442 GB, free: 94.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.029, allocations: 11.63 MB / 0.7555 GB, free: 81.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.406e-05/1.029, allocations: 36 kB / 0.7556 GB, free: 81.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03793/1.067, allocations: 16.21 MB / 0.7714 GB, free: 65.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.278e-05/1.067, allocations: 64.03 kB / 0.7715 GB, free: 65.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/1.068, allocations: 128 kB / 0.7716 GB, free: 65.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02314/1.091, allocations: 6.221 MB / 0.7777 GB, free: 58.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004662/1.095, allocations: 1.493 MB / 0.7791 GB, free: 57.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02862/1.124, allocations: 26.14 MB / 0.8047 GB, free: 30.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005861/1.13, allocations: 415.3 kB / 0.805 GB, free: 30.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009209/1.131, allocations: 384 kB / 0.8054 GB, free: 30.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (779): * Single equations (assignments): 774 * 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,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003347/1.134, allocations: 2.224 MB / 0.8076 GB, free: 27.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008045/1.135, allocations: 390.9 kB / 0.808 GB, free: 27.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02736/1.162, allocations: 11.3 MB / 0.819 GB, free: 16.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-05/1.163, allocations: 27.94 kB / 0.819 GB, free: 16.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.898e-05/1.163, allocations: 12 kB / 0.819 GB, free: 16.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.269e-05/1.163, allocations: 7.969 kB / 0.819 GB, free: 16.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04291/1.206, allocations: 20.7 MB / 0.8392 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/1.206, allocations: 8 kB / 0.8393 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/1.208, allocations: 383.4 kB / 0.8396 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02117/1.229, allocations: 5.319 MB / 0.8448 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005345/1.23, allocations: 39.94 kB / 0.8449 GB, free: 5.203 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02932/1.259, allocations: 21.21 MB / 0.8656 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/1.259, allocations: 7.984 kB / 0.8656 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5731/1.832, allocations: 146.2 MB / 1.008 GB, free: 65.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/1.833, allocations: 451.8 kB / 1.009 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007224/1.834, allocations: 43.98 kB / 1.009 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.836, allocations: 183.2 kB / 1.009 GB, free: 64.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006574/1.837, allocations: 152.4 kB / 1.009 GB, free: 64.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/1.837, allocations: 71.78 kB / 1.009 GB, free: 64.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003246/1.84, allocations: 2.701 MB / 1.012 GB, free: 61.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/1.84, allocations: 0 / 1.012 GB, free: 61.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00815/1.849, allocations: 1.976 MB / 1.014 GB, free: 59.79 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 (167): * Single equations (assignments): 162 * 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,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007465/1.849, allocations: 192.2 kB / 1.014 GB, free: 59.61 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009937/1.859, allocations: 8.317 MB / 1.022 GB, free: 51.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.859, allocations: 4.375 kB / 1.022 GB, free: 51.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003813/1.863, allocations: 3.209 MB / 1.025 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/1.866, allocations: 494.9 kB / 1.026 GB, free: 47.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01977/1.886, allocations: 15.91 MB / 1.041 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003289/1.889, allocations: 3.586 MB / 1.045 GB, free: 28.01 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004754/1.894, allocations: 2.03 MB / 1.047 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/1.895, allocations: 275.4 kB / 1.047 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/1.895, allocations: 0 / 1.047 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.39/2.285, allocations: 106.7 MB / 1.151 GB, free: 107.6 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches