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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.001261/0.001261, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.405/1.405, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2113/0.2113, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3913, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.014/0.4054, allocations: 12.05 MB / 0.5302 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.4182, allocations: 4.292 MB / 0.5344 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004051/0.4224, allocations: 76.31 kB / 0.5344 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006685/0.4291, allocations: 2.74 MB / 0.5371 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007328/0.4365, allocations: 2.01 MB / 0.5391 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003074/0.4396, allocations: 0.9057 MB / 0.54 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.45, allocations: 5.591 MB / 0.5454 GB, free: 436 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005674/0.4557, allocations: 3.353 MB / 0.5487 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003574/0.4593, allocations: 1.721 MB / 0.5504 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.4637, allocations: 2.516 MB / 0.5528 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0014/0.4651, allocations: 384 kB / 0.5532 GB, free: 8.398 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003765/0.4689, allocations: 1.408 MB / 0.5546 GB, free: 6.988 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00317/0.4721, allocations: 2.186 MB / 0.5567 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004836/0.477, allocations: 2.505 MB / 0.5592 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.4885, allocations: 8.075 MB / 0.5671 GB, free: 10.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.4886, allocations: 3.984 kB / 0.5671 GB, free: 10.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4886, allocations: 0 / 0.5671 GB, free: 10.17 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002711/0.4889, allocations: 0 / 0.5671 GB, free: 10.17 MB / 430.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.01629/0.5052, allocations: 5.844 MB / 0.5728 GB, free: 4.238 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.5052, allocations: 8.031 kB / 0.5728 GB, free: 4.23 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001422/0.5067, allocations: 0.7929 MB / 0.5735 GB, free: 3.426 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0388/0.5455, allocations: 5.989 MB / 0.5794 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008739/0.5542, allocations: 4.084 MB / 0.5834 GB, free: 9.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.5545, allocations: 250.2 kB / 0.5836 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008748/0.5554, allocations: 327.8 kB / 0.5839 GB, free: 8.719 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01978/0.5752, allocations: 10.78 MB / 0.5945 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001466/0.5754, allocations: 55.53 kB / 0.5945 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004381/0.5758, allocations: 155.8 kB / 0.5947 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003273/0.5791, allocations: 1.998 MB / 0.5966 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02065/0.5998, allocations: 9.241 MB / 0.6056 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/0.6553, allocations: 40.9 MB / 0.6456 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/0.6665, allocations: 4.23 MB / 0.6497 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002858/0.6694, allocations: 1.888 MB / 0.6515 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01154/0.681, allocations: 7.503 MB / 0.6589 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.009e-05/0.6811, allocations: 59.44 kB / 0.6589 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.099e-06/0.6811, allocations: 0 / 0.6589 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1654/0.8465, allocations: 40.89 MB / 0.6989 GB, free: 440 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.8467, allocations: 201.9 kB / 0.6991 GB, free: 196 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007072/0.8538, allocations: 4.338 MB / 0.7033 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006663/0.8545, allocations: 65.69 kB / 0.7034 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00324/0.8577, allocations: 3.346 MB / 0.7066 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001386/0.8591, allocations: 0.9186 MB / 0.7075 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002566/0.8617, allocations: 1.29 MB / 0.7088 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.8619, allocations: 305.1 kB / 0.7091 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00628/0.8682, allocations: 3.491 MB / 0.7125 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2827/1.151, allocations: 7.107 MB / 0.7194 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/1.164, allocations: 11.37 MB / 0.7305 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/1.164, allocations: 36 kB / 0.7306 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03619/1.2, allocations: 15.72 MB / 0.7459 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.031e-05/1.201, allocations: 61.84 kB / 0.746 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/1.201, allocations: 125.4 kB / 0.7461 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02137/1.222, allocations: 6.058 MB / 0.752 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004464/1.227, allocations: 1.431 MB / 0.7534 GB, free: 149 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02795/1.255, allocations: 27.16 MB / 0.7799 GB, free: 121.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005489/1.26, allocations: 402.1 kB / 0.7803 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008054/1.261, allocations: 371.3 kB / 0.7807 GB, free: 120.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * 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 (741): * Single equations (assignments): 736 * 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.003062/1.264, allocations: 2.218 MB / 0.7828 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007503/1.265, allocations: 423.1 kB / 0.7832 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02556/1.29, allocations: 11.05 MB / 0.794 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.129e-05/1.29, allocations: 28 kB / 0.7941 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/1.29, allocations: 15.94 kB / 0.7941 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.968e-05/1.29, allocations: 7.969 kB / 0.7941 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03706/1.328, allocations: 20.48 MB / 0.8141 GB, free: 86.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.26e-05/1.328, allocations: 8.062 kB / 0.8141 GB, free: 86.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.33, allocations: 387.4 kB / 0.8145 GB, free: 86.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01856/1.348, allocations: 5.148 MB / 0.8195 GB, free: 81.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004636/1.349, allocations: 44 kB / 0.8195 GB, free: 81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02274/1.371, allocations: 22.24 MB / 0.8412 GB, free: 58.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/1.371, allocations: 7.938 kB / 0.8412 GB, free: 58.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02827/1.4, allocations: 14.33 MB / 0.8552 GB, free: 44.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.401, allocations: 470.1 kB / 0.8557 GB, free: 43.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007602/1.402, allocations: 47.98 kB / 0.8557 GB, free: 43.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.404, allocations: 175.7 kB / 0.8559 GB, free: 43.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005974/1.405, allocations: 164.9 kB / 0.8561 GB, free: 43.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/1.405, allocations: 60 kB / 0.8561 GB, free: 43.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003169/1.408, allocations: 2.731 MB / 0.8588 GB, free: 40.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.408, allocations: 0 / 0.8588 GB, free: 40.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005218/1.413, allocations: 1.335 MB / 0.8601 GB, free: 39.19 MB / 0.5606 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.02703/1.44, allocations: 14.95 MB / 0.8747 GB, free: 24.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009938/1.45, allocations: 8.115 MB / 0.8826 GB, free: 16.04 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/1.45, allocations: 0 / 0.8826 GB, free: 16.04 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003771/1.454, allocations: 3.173 MB / 0.8857 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003456/1.458, allocations: 0.5341 MB / 0.8862 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3867/1.844, allocations: 67.1 MB / 0.9518 GB, free: 218 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004767/1.849, allocations: 3.514 MB / 0.9552 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005096/1.854, allocations: 1.96 MB / 0.9571 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003209/1.857, allocations: 2.076 MB / 0.9591 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.282e-06/1.858, allocations: 0.7656 kB / 0.9591 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1413/1.999, allocations: 105.4 MB / 1.062 GB, free: 128.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.04/27.04, allocations: 7.188 kB / 1.062 GB, free: 128.7 MB / 0.6231 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/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