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.001219/0.001219, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001299/0.001299, allocations: 179.1 kB / 18.71 MB, free: 4.363 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.427/1.427, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2291/0.2291, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3498, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01443/0.3642, allocations: 13.41 MB / 0.5315 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.3762, allocations: 4.782 MB / 0.5362 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003653/0.3799, allocations: 95.03 kB / 0.5363 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007206/0.3872, allocations: 3.733 MB / 0.5399 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006435/0.3936, allocations: 2.254 MB / 0.5421 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002605/0.3963, allocations: 1.079 MB / 0.5432 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009001/0.4053, allocations: 6.511 MB / 0.5495 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005909/0.4112, allocations: 4.517 MB / 0.5539 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004186/0.4154, allocations: 2.033 MB / 0.5559 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004304/0.4198, allocations: 2.745 MB / 0.5586 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.4214, allocations: 432 kB / 0.559 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.4252, allocations: 1.459 MB / 0.5604 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003492/0.4287, allocations: 2.494 MB / 0.5629 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005534/0.4343, allocations: 2.843 MB / 0.5657 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.4491, allocations: 8.994 MB / 0.5744 GB, free: 2.547 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.125e-05/0.4491, allocations: 11.94 kB / 0.5744 GB, free: 2.535 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4491, allocations: 0 / 0.5744 GB, free: 2.535 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003626/0.4495, allocations: 0 / 0.5744 GB, free: 2.535 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01935/0.4689, allocations: 6.591 MB / 0.5809 GB, free: 11.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.4689, allocations: 12.03 kB / 0.5809 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001857/0.4708, allocations: 0.912 MB / 0.5818 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03662/0.5074, allocations: 6.051 MB / 0.5877 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.5179, allocations: 4.982 MB / 0.5926 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.5182, allocations: 288.6 kB / 0.5928 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.5195, allocations: 387.8 kB / 0.5932 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.5393, allocations: 11.91 MB / 0.6048 GB, free: 2.473 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.5395, allocations: 63.52 kB / 0.6049 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004928/0.5401, allocations: 179.8 kB / 0.6051 GB, free: 2.234 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00302/0.5431, allocations: 2.143 MB / 0.6072 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01892/0.562, allocations: 10.16 MB / 0.6171 GB, free: 5.914 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05902/0.6211, allocations: 47.13 MB / 0.6631 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01356/0.6347, allocations: 5.788 MB / 0.6688 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003702/0.6384, allocations: 2.931 MB / 0.6716 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01428/0.6527, allocations: 8.761 MB / 0.6802 GB, free: 3.629 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/0.6528, allocations: 55.81 kB / 0.6802 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=206): time 6.151e-06/0.6528, allocations: 0 / 0.6802 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.1194/0.7722, allocations: 35 MB / 0.7144 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.7724, allocations: 210 kB / 0.7146 GB, free: 292 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3369/1.109, allocations: 4.804 MB / 0.7193 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006091/1.11, allocations: 66.44 kB / 0.7194 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00245/1.112, allocations: 3.738 MB / 0.723 GB, free: 167.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001015/1.113, allocations: 1.011 MB / 0.724 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/1.115, allocations: 1.356 MB / 0.7253 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.625e-05/1.115, allocations: 302.2 kB / 0.7256 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004061/1.119, allocations: 3.025 MB / 0.7286 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/1.125, allocations: 6.845 MB / 0.7352 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/1.136, allocations: 10.67 MB / 0.7457 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002461/1.136, allocations: 37.56 kB / 0.7457 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02544/1.161, allocations: 13.23 MB / 0.7586 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/1.162, allocations: 64 kB / 0.7587 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002147/1.162, allocations: 132 kB / 0.7588 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/1.173, allocations: 4.218 MB / 0.7629 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004544/1.177, allocations: 1.423 MB / 0.7643 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03178/1.209, allocations: 28.57 MB / 0.7922 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005957/1.215, allocations: 404.6 kB / 0.7926 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.216, allocations: 399.3 kB / 0.793 GB, free: 108.9 MB / 0.5606 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.004713/1.221, allocations: 2.466 MB / 0.7954 GB, free: 106.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.222, allocations: 464.9 kB / 0.7958 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/1.237, allocations: 8.238 MB / 0.8039 GB, free: 97.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.22e-05/1.237, allocations: 28 kB / 0.8039 GB, free: 97.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.972e-05/1.237, allocations: 12 kB / 0.8039 GB, free: 97.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.214e-05/1.237, allocations: 15.95 kB / 0.8039 GB, free: 97.74 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02867/1.266, allocations: 16.73 MB / 0.8203 GB, free: 80.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.52e-05/1.266, allocations: 11.98 kB / 0.8203 GB, free: 80.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/1.267, allocations: 295.5 kB / 0.8206 GB, free: 80.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00964/1.277, allocations: 3.802 MB / 0.8243 GB, free: 76.79 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004114/1.277, allocations: 51.98 kB / 0.8243 GB, free: 76.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02855/1.306, allocations: 27.36 MB / 0.8511 GB, free: 48.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.306, allocations: 4 kB / 0.8511 GB, free: 48.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01795/1.324, allocations: 12.15 MB / 0.8629 GB, free: 36.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/1.325, allocations: 0.5056 MB / 0.8634 GB, free: 36.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008304/1.326, allocations: 55.92 kB / 0.8635 GB, free: 36.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002789/1.329, allocations: 171.7 kB / 0.8636 GB, free: 35.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006718/1.33, allocations: 182.1 kB / 0.8638 GB, free: 35.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/1.33, allocations: 75.98 kB / 0.8639 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003522/1.333, allocations: 3.043 MB / 0.8668 GB, free: 32.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.21e-07/1.333, allocations: 0 / 0.8668 GB, free: 32.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005711/1.339, allocations: 1.422 MB / 0.8682 GB, free: 31.22 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 (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.01796/1.357, allocations: 12.82 MB / 0.8808 GB, free: 18.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01151/1.369, allocations: 8.214 MB / 0.8888 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.369, allocations: 3.938 kB / 0.8888 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004792/1.373, allocations: 3.501 MB / 0.8922 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/1.377, allocations: 0.6132 MB / 0.8928 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3937/1.771, allocations: 64.26 MB / 0.9556 GB, free: 212.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005041/1.776, allocations: 3.923 MB / 0.9594 GB, free: 211.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00471/1.781, allocations: 2.012 MB / 0.9613 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003046/1.784, allocations: 2.363 MB / 0.9637 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of SimCode: time 7.01e-07/1.784, allocations: 2 kB / 0.9637 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1584/1.942, allocations: 113 MB / 1.074 GB, free: 117.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.15/23.09, allocations: 0 / 1.074 GB, free: 117.8 MB / 0.6231 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