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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008086/0.0008085, allocations: 93 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008356/0.0008356, allocations: 172.1 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2225/0.2225, allocations: 44.26 MB / 337.7 MB, free: 2.43 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003355, allocations: 8 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1514, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3756/0.5271, allocations: 45.74 MB / 0.5058 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02857/0.5557, allocations: 10.07 MB / 0.5157 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01225/0.568, allocations: 202.9 kB / 0.5159 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.5705, allocations: 450.7 kB / 0.5163 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008072/0.5785, allocations: 1.899 MB / 0.5182 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003034/0.5816, allocations: 0.8373 MB / 0.519 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01573/0.5973, allocations: 7.928 MB / 0.5267 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007869/0.6053, allocations: 4.669 MB / 0.5313 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004702/0.61, allocations: 1.316 MB / 0.5326 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004861/0.6149, allocations: 2.408 MB / 0.5349 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009296/0.6159, allocations: 177.2 kB / 0.5351 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002975/0.6189, allocations: 1.288 MB / 0.5363 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.6209, allocations: 1.98 MB / 0.5383 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002898/0.6238, allocations: 2.205 MB / 0.5404 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.6345, allocations: 7.368 MB / 0.5476 GB, free: 9.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.6345, allocations: 0 / 0.5476 GB, free: 9.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.6345, allocations: 0 / 0.5476 GB, free: 9.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000323/0.6349, allocations: 4 kB / 0.5476 GB, free: 9.43 MB / 398.1 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.01246/0.6473, allocations: 4.588 MB / 0.5521 GB, free: 4.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.6474, allocations: 12.03 kB / 0.5521 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01247/0.6599, allocations: 2.54 MB / 0.5546 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/0.6701, allocations: 3.364 MB / 0.5579 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002704/0.6704, allocations: 236 kB / 0.5581 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.6722, allocations: 334.8 kB / 0.5584 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02147/0.6937, allocations: 10.9 MB / 0.5691 GB, free: 2.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/0.6939, allocations: 59.48 kB / 0.5691 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004513/0.6943, allocations: 147.7 kB / 0.5693 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00321/0.6976, allocations: 2.002 MB / 0.5712 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0198/0.7174, allocations: 9.467 MB / 0.5805 GB, free: 7.191 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05768/0.7751, allocations: 41.22 MB / 0.6207 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/0.7864, allocations: 4.27 MB / 0.6249 GB, free: 8.531 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.7893, allocations: 1.931 MB / 0.6268 GB, free: 6.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.8005, allocations: 7.614 MB / 0.6342 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.8006, allocations: 55.48 kB / 0.6343 GB, free: 14.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 4.799e-06/0.8006, allocations: 0 / 0.6343 GB, free: 14.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1786/0.9792, allocations: 41.42 MB / 0.6747 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.9794, allocations: 205.9 kB / 0.6749 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008263/0.9877, allocations: 4.313 MB / 0.6791 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006509/0.9883, allocations: 57.7 kB / 0.6792 GB, free: 452 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002809/0.9912, allocations: 3.179 MB / 0.6823 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001433/0.9926, allocations: 0.8835 MB / 0.6832 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001559/0.9942, allocations: 0.563 MB / 0.6837 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.9944, allocations: 309.4 kB / 0.684 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006777/1.001, allocations: 3.624 MB / 0.6875 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008323/1.01, allocations: 7.298 MB / 0.6947 GB, free: 14.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01513/1.025, allocations: 11.63 MB / 0.706 GB, free: 1.426 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001626/1.025, allocations: 36 kB / 0.7061 GB, free: 1.391 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.3674/1.392, allocations: 16.22 MB / 0.7219 GB, free: 197.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.392, allocations: 59.94 kB / 0.722 GB, free: 197.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002286/1.393, allocations: 134.8 kB / 0.7221 GB, free: 197.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02438/1.417, allocations: 6.256 MB / 0.7282 GB, free: 196.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005282/1.422, allocations: 1.493 MB / 0.7297 GB, free: 195.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03041/1.453, allocations: 26.15 MB / 0.7552 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006475/1.459, allocations: 412.8 kB / 0.7556 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/1.461, allocations: 392.5 kB / 0.756 GB, free: 175.2 MB / 0.545 GB 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.00531/1.466, allocations: 2.222 MB / 0.7581 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.467, allocations: 391.1 kB / 0.7585 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02804/1.495, allocations: 11.31 MB / 0.7695 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-05/1.495, allocations: 24.62 kB / 0.7696 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.069e-05/1.495, allocations: 12 kB / 0.7696 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.381e-05/1.496, allocations: 11.95 kB / 0.7696 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04098/1.537, allocations: 20.77 MB / 0.7899 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.632e-05/1.537, allocations: 9.359 kB / 0.7899 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/1.539, allocations: 392 kB / 0.7903 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02042/1.559, allocations: 5.336 MB / 0.7955 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005632/1.56, allocations: 45.89 kB / 0.7955 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02529/1.585, allocations: 21.21 MB / 0.8162 GB, free: 113.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.21e-05/1.585, allocations: 15.97 kB / 0.8163 GB, free: 113.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02891/1.614, allocations: 14.62 MB / 0.8305 GB, free: 98.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.615, allocations: 459.8 kB / 0.831 GB, free: 98.05 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007448/1.616, allocations: 43.83 kB / 0.831 GB, free: 98.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002342/1.618, allocations: 183.7 kB / 0.8312 GB, free: 97.83 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007107/1.619, allocations: 158.4 kB / 0.8313 GB, free: 97.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/1.619, allocations: 60 kB / 0.8314 GB, free: 97.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003348/1.623, allocations: 2.709 MB / 0.834 GB, free: 94.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.623, allocations: 0 / 0.834 GB, free: 94.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005242/1.628, allocations: 1.374 MB / 0.8354 GB, free: 93.53 MB / 0.545 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.0004948/1.628, allocations: 186.7 kB / 0.8356 GB, free: 93.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01067/1.639, allocations: 8.32 MB / 0.8437 GB, free: 85.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.639, allocations: 2.719 kB / 0.8437 GB, free: 85.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00443/1.643, allocations: 3.209 MB / 0.8468 GB, free: 81.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006599/1.65, allocations: 496.5 kB / 0.8473 GB, free: 81.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/1.668, allocations: 14.11 MB / 0.8611 GB, free: 67.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003427/1.672, allocations: 3.496 MB / 0.8645 GB, free: 63.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004755/1.677, allocations: 1.96 MB / 0.8664 GB, free: 61.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/1.678, allocations: 267.4 kB / 0.8667 GB, free: 61.38 MB / 0.545 GB Notification: Performance of SimCode: time 1.382e-06/1.678, allocations: 0 / 0.8667 GB, free: 61.38 MB / 0.545 GB Notification: Performance of Templates: time 0.3881/2.066, allocations: 66.25 MB / 0.9313 GB, free: 181.9 MB / 0.545 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches