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/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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.001515/0.001515, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001733/0.001733, allocations: 192 kB / 18.55 MB, free: 4.566 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.449/1.449, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.206/0.206, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.39 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1183, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01656/0.1349, allocations: 13.4 MB / 482.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1469, allocations: 4.801 MB / 487.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003058/0.15, allocations: 91.75 kB / 487.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007099/0.1572, allocations: 3.738 MB / 491.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006703/0.1639, allocations: 2.19 MB / 493.6 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002921/0.1669, allocations: 1.072 MB / 494.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009377/0.1763, allocations: 6.501 MB / 0.4894 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006445/0.1828, allocations: 4.522 MB / 0.4938 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003835/0.1866, allocations: 2.017 MB / 0.4958 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004512/0.1912, allocations: 2.746 MB / 0.4985 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001488/0.1927, allocations: 428 kB / 0.4989 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.1968, allocations: 1.459 MB / 0.5003 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003705/0.2005, allocations: 2.455 MB / 0.5027 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2363/0.4369, allocations: 2.842 MB / 0.5055 GB, free: 20.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.4488, allocations: 8.716 MB / 0.514 GB, free: 19.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.4488, allocations: 0 / 0.514 GB, free: 19.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4488, allocations: 0 / 0.514 GB, free: 19.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004525/0.4493, allocations: 0 / 0.514 GB, free: 19.19 MB / 382.1 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.02225/0.4715, allocations: 6.423 MB / 0.5203 GB, free: 16.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.4716, allocations: 9.031 kB / 0.5203 GB, free: 16.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0036/0.4752, allocations: 0.9145 MB / 0.5212 GB, free: 16.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03969/0.5149, allocations: 6.025 MB / 0.527 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.5261, allocations: 4.862 MB / 0.5318 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003486/0.5265, allocations: 289.4 kB / 0.5321 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00251/0.529, allocations: 399.2 kB / 0.5325 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/0.5532, allocations: 11.9 MB / 0.5441 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003358/0.5535, allocations: 65.02 kB / 0.5441 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002054/0.5556, allocations: 179.1 kB / 0.5443 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00383/0.5595, allocations: 2.143 MB / 0.5464 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02411/0.5836, allocations: 10.16 MB / 0.5563 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06694/0.6506, allocations: 47.28 MB / 0.6025 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/0.6658, allocations: 5.774 MB / 0.6081 GB, free: 3.602 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003995/0.6698, allocations: 2.941 MB / 0.611 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01524/0.6851, allocations: 8.753 MB / 0.6196 GB, free: 7.801 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/0.6852, allocations: 58.78 kB / 0.6196 GB, free: 7.738 MB / 462.1 MB Notification: Performance of pre-optimization done (n=206): time 6.912e-06/0.6853, allocations: 3.562 kB / 0.6196 GB, free: 7.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=262): time 0.136/0.8213, allocations: 34.71 MB / 0.6535 GB, free: 5.102 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.8214, allocations: 213.1 kB / 0.6537 GB, free: 4.855 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008382/0.8298, allocations: 4.8 MB / 0.6584 GB, free: 56 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006158/0.8305, allocations: 65.27 kB / 0.6585 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002753/0.8332, allocations: 3.591 MB / 0.662 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001351/0.8346, allocations: 0.9726 MB / 0.6629 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003489/0.8381, allocations: 1.345 MB / 0.6642 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.8382, allocations: 305.1 kB / 0.6645 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005051/0.8433, allocations: 3.027 MB / 0.6675 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009292/0.8526, allocations: 6.839 MB / 0.6742 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/0.8664, allocations: 10.67 MB / 0.6846 GB, free: 2.102 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001058/0.8665, allocations: 36 kB / 0.6846 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02788/0.8944, allocations: 13.21 MB / 0.6975 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.8945, allocations: 60.19 kB / 0.6976 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/0.8947, allocations: 140 kB / 0.6977 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/0.9073, allocations: 4.23 MB / 0.7018 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2165/1.124, allocations: 1.406 MB / 0.7032 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03563/1.16, allocations: 28.58 MB / 0.7311 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005733/1.165, allocations: 402.1 kB / 0.7315 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007872/1.166, allocations: 396.6 kB / 0.7319 GB, free: 172.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * 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 (756): * Single equations (assignments): 750 * 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.004191/1.17, allocations: 2.47 MB / 0.7343 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007786/1.171, allocations: 441.2 kB / 0.7347 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/1.186, allocations: 8.239 MB / 0.7428 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.852e-05/1.186, allocations: 33.11 kB / 0.7428 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/1.186, allocations: 12 kB / 0.7428 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-05/1.186, allocations: 19.89 kB / 0.7428 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.214, allocations: 16.87 MB / 0.7593 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.214e-05/1.214, allocations: 4 kB / 0.7593 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/1.215, allocations: 303.5 kB / 0.7596 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009495/1.225, allocations: 3.809 MB / 0.7633 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004331/1.225, allocations: 49.56 kB / 0.7634 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02878/1.254, allocations: 27.32 MB / 0.79 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/1.254, allocations: 8 kB / 0.79 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02649/1.28, allocations: 12.11 MB / 0.8019 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002195/1.283, allocations: 499.2 kB / 0.8023 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002541/1.285, allocations: 51.05 kB / 0.8024 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005079/1.29, allocations: 159.8 kB / 0.8025 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001601/1.292, allocations: 190 kB / 0.8027 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000595/1.293, allocations: 79.94 kB / 0.8028 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008989/1.302, allocations: 3.043 MB / 0.8058 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.71e-07/1.302, allocations: 0 / 0.8058 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01179/1.314, allocations: 1.425 MB / 0.8072 GB, free: 101.3 MB / 0.5294 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.02662/1.34, allocations: 12.79 MB / 0.8197 GB, free: 88.35 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01798/1.358, allocations: 9.744 MB / 0.8292 GB, free: 78.59 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/1.358, allocations: 0 / 0.8292 GB, free: 78.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005856/1.364, allocations: 3.49 MB / 0.8326 GB, free: 75.07 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004864/1.369, allocations: 0.6156 MB / 0.8332 GB, free: 74.47 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3165/1.686, allocations: 73.73 MB / 0.9052 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005709/1.691, allocations: 3.928 MB / 0.909 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005054/1.696, allocations: 2.017 MB / 0.911 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003137/1.7, allocations: 2.36 MB / 0.9133 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.7, allocations: 3.625 kB / 0.9133 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/1.859, allocations: 116.7 MB / 1.027 GB, free: 73.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/15.82, allocations: 7.312 kB / 1.027 GB, free: 73.82 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_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_SphericalAndUniversal.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches