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.00145/0.00145, allocations: 112.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.001679/0.001679, allocations: 184.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.419/1.419, 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.2046/0.2046, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.363, allocations: 60.81 MB / 0.5184 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.0155/0.3785, allocations: 13.41 MB / 0.5315 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.3897, allocations: 4.785 MB / 0.5362 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003586/0.3933, allocations: 94.34 kB / 0.5363 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007538/0.4009, allocations: 3.734 MB / 0.5399 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006885/0.4079, allocations: 2.253 MB / 0.5421 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00291/0.4108, allocations: 1.068 MB / 0.5432 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009953/0.4208, allocations: 6.52 MB / 0.5495 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006276/0.4271, allocations: 4.513 MB / 0.5539 GB, free: 7.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003973/0.4311, allocations: 2.025 MB / 0.5559 GB, free: 5.699 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004465/0.4356, allocations: 2.742 MB / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001547/0.4372, allocations: 431.9 kB / 0.559 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003674/0.4409, allocations: 1.467 MB / 0.5604 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003329/0.4442, allocations: 2.498 MB / 0.5629 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005804/0.4501, allocations: 2.843 MB / 0.5657 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01482/0.4649, allocations: 8.994 MB / 0.5744 GB, free: 2.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4649, allocations: 0 / 0.5744 GB, free: 2.668 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.465, allocations: 0 / 0.5744 GB, free: 2.668 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004068/0.4654, allocations: 0 / 0.5744 GB, free: 2.668 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.01992/0.4853, allocations: 6.6 MB / 0.5809 GB, free: 11.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.4854, allocations: 12.03 kB / 0.5809 GB, free: 11.97 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00285/0.4882, allocations: 0.9081 MB / 0.5818 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03843/0.5267, allocations: 6.047 MB / 0.5877 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01164/0.5384, allocations: 4.986 MB / 0.5926 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000282/0.5387, allocations: 291.4 kB / 0.5928 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001507/0.5402, allocations: 387.7 kB / 0.5932 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02339/0.5636, allocations: 11.92 MB / 0.6048 GB, free: 2.586 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002735/0.5639, allocations: 51.59 kB / 0.6049 GB, free: 2.535 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001413/0.5654, allocations: 187.8 kB / 0.6051 GB, free: 2.352 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003459/0.5688, allocations: 2.143 MB / 0.6072 GB, free: 212 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/0.5906, allocations: 10.16 MB / 0.6171 GB, free: 6.031 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06295/0.6536, allocations: 47.13 MB / 0.6631 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.6685, allocations: 5.781 MB / 0.6688 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003744/0.6723, allocations: 2.941 MB / 0.6716 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/0.6864, allocations: 8.757 MB / 0.6802 GB, free: 3.75 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/0.6865, allocations: 55.86 kB / 0.6802 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=206): time 4.729e-06/0.6865, allocations: 0 / 0.6802 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.1218/0.8084, allocations: 34.99 MB / 0.7144 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.8086, allocations: 213.8 kB / 0.7146 GB, free: 412 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2861/1.095, allocations: 4.798 MB / 0.7193 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006569/1.095, allocations: 66.05 kB / 0.7194 GB, free: 170 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002508/1.098, allocations: 3.726 MB / 0.723 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/1.1, allocations: 1.017 MB / 0.724 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002098/1.102, allocations: 1.36 MB / 0.7253 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.91e-05/1.102, allocations: 302.5 kB / 0.7256 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004149/1.106, allocations: 3.032 MB / 0.7286 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006448/1.112, allocations: 6.843 MB / 0.7353 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.124, allocations: 10.67 MB / 0.7457 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/1.124, allocations: 37.91 kB / 0.7457 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02349/1.148, allocations: 13.23 MB / 0.7586 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.734e-05/1.148, allocations: 65.88 kB / 0.7587 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.148, allocations: 132 kB / 0.7588 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01051/1.158, allocations: 4.225 MB / 0.7629 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/1.163, allocations: 1.408 MB / 0.7643 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03043/1.193, allocations: 28.58 MB / 0.7922 GB, free: 109.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.199, allocations: 396.2 kB / 0.7926 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008089/1.2, allocations: 403.5 kB / 0.793 GB, free: 109.1 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.003885/1.204, allocations: 2.465 MB / 0.7954 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/1.205, allocations: 464.9 kB / 0.7958 GB, free: 106.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01371/1.219, allocations: 8.226 MB / 0.8039 GB, free: 98.04 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/1.219, allocations: 35.94 kB / 0.8039 GB, free: 98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/1.219, allocations: 12 kB / 0.8039 GB, free: 97.99 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.023e-05/1.219, allocations: 15.95 kB / 0.8039 GB, free: 97.98 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02586/1.245, allocations: 16.75 MB / 0.8203 GB, free: 81.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/1.245, allocations: 4 kB / 0.8203 GB, free: 81.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.246, allocations: 299.5 kB / 0.8206 GB, free: 80.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008991/1.255, allocations: 3.795 MB / 0.8243 GB, free: 77.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002844/1.255, allocations: 52 kB / 0.8243 GB, free: 76.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02847/1.284, allocations: 27.37 MB / 0.8511 GB, free: 49.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.284, allocations: 7.938 kB / 0.8511 GB, free: 49.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/1.302, allocations: 12.14 MB / 0.8629 GB, free: 36.89 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/1.304, allocations: 0.5018 MB / 0.8634 GB, free: 36.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008503/1.304, allocations: 51.75 kB / 0.8635 GB, free: 36.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/1.307, allocations: 171.8 kB / 0.8636 GB, free: 36.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/1.307, allocations: 190 kB / 0.8638 GB, free: 35.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/1.307, allocations: 71.94 kB / 0.8639 GB, free: 35.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003671/1.311, allocations: 3.043 MB / 0.8669 GB, free: 32.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/1.311, allocations: 4 kB / 0.8669 GB, free: 32.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006488/1.318, allocations: 1.418 MB / 0.8682 GB, free: 31.44 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.01803/1.336, allocations: 12.82 MB / 0.8808 GB, free: 18.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01287/1.349, allocations: 8.213 MB / 0.8888 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.349, allocations: 0 / 0.8888 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005185/1.354, allocations: 3.506 MB / 0.8922 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.358, allocations: 0.6086 MB / 0.8928 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3812/1.739, allocations: 64.26 MB / 0.9556 GB, free: 212.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006029/1.745, allocations: 3.923 MB / 0.9594 GB, free: 211.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005812/1.751, allocations: 2.009 MB / 0.9613 GB, free: 211.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004443/1.755, allocations: 2.366 MB / 0.9637 GB, free: 211.9 MB / 0.6231 GB Notification: Performance of SimCode: time 1.723e-06/1.755, allocations: 0 / 0.9637 GB, free: 211.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1621/1.917, allocations: 113 MB / 1.074 GB, free: 118.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.85/23.77, allocations: 4.062 kB / 1.074 GB, free: 118.2 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