Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_3_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.001411/0.001411, allocations: 104.7 kB / 16.4 MB, free: 6.453 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.001488/0.001488, allocations: 192.2 kB / 17.34 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2131/0.2131, allocations: 43.53 MB / 314.1 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 64.38 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1064, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01501/0.1215, allocations: 13.48 MB / 0.5006 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009861/0.1314, allocations: 4.802 MB / 0.5052 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.1334, allocations: 95.69 kB / 0.5053 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006589/0.14, allocations: 3.738 MB / 0.509 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006307/0.1463, allocations: 2.202 MB / 0.5111 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003245/0.1496, allocations: 1.076 MB / 0.5122 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009503/0.1591, allocations: 6.198 MB / 0.5182 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005609/0.1648, allocations: 4.529 MB / 0.5227 GB, free: 7.996 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003183/0.168, allocations: 2.04 MB / 0.5247 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003817/0.1718, allocations: 2.761 MB / 0.5274 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009135/0.1727, allocations: 428 kB / 0.5278 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0027/0.1754, allocations: 1.443 MB / 0.5292 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2143/0.3897, allocations: 2.461 MB / 0.5316 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003703/0.3935, allocations: 2.867 MB / 0.5344 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.407, allocations: 9.02 MB / 0.5432 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.407, allocations: 0 / 0.5432 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.407, allocations: 3.5 kB / 0.5432 GB, free: 10.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003014/0.4074, allocations: 0 / 0.5432 GB, free: 10.07 MB / 414.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.01978/0.4271, allocations: 6.629 MB / 0.5497 GB, free: 7.492 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4272, allocations: 14.3 kB / 0.5497 GB, free: 7.488 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002558/0.4298, allocations: 0.9095 MB / 0.5506 GB, free: 7.398 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0393/0.4691, allocations: 6.058 MB / 0.5565 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0104/0.4795, allocations: 5.305 MB / 0.5617 GB, free: 4.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.4797, allocations: 287.6 kB / 0.5619 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001336/0.4811, allocations: 393.4 kB / 0.5623 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02107/0.5022, allocations: 11.9 MB / 0.5739 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001799/0.5024, allocations: 69.66 kB / 0.574 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005843/0.503, allocations: 179 kB / 0.5742 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.506, allocations: 2.14 MB / 0.5763 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.5274, allocations: 10.17 MB / 0.5862 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06546/0.5929, allocations: 47.17 MB / 0.6323 GB, free: 3.426 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/0.6081, allocations: 5.781 MB / 0.6379 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00402/0.6122, allocations: 2.928 MB / 0.6408 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.6265, allocations: 8.775 MB / 0.6493 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.6266, allocations: 58.77 kB / 0.6494 GB, free: 1.652 MB / 494.1 MB Notification: Performance of pre-optimization done (n=206): time 4.769e-06/0.6266, allocations: 0 / 0.6494 GB, free: 1.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.1279/0.7544, allocations: 35.13 MB / 0.6837 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/0.7546, allocations: 211.4 kB / 0.6839 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008348/0.763, allocations: 4.846 MB / 0.6886 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006288/0.7636, allocations: 61.7 kB / 0.6887 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003058/0.7667, allocations: 3.729 MB / 0.6923 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001464/0.7682, allocations: 1.017 MB / 0.6933 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002149/0.7703, allocations: 1.356 MB / 0.6946 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7705, allocations: 301.1 kB / 0.6949 GB, free: 3.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00488/0.7753, allocations: 3.027 MB / 0.6979 GB, free: 60 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008213/0.7836, allocations: 6.844 MB / 0.7046 GB, free: 7.406 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/0.7978, allocations: 10.67 MB / 0.715 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.105e-05/0.7979, allocations: 36 kB / 0.715 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02851/0.8264, allocations: 13.23 MB / 0.7279 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.41e-05/0.8265, allocations: 71.5 kB / 0.728 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.8267, allocations: 135.9 kB / 0.7281 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/0.8395, allocations: 4.22 MB / 0.7323 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004891/0.8444, allocations: 1.419 MB / 0.7337 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2743/1.119, allocations: 28.57 MB / 0.7615 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005545/1.124, allocations: 406.9 kB / 0.7619 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.125, allocations: 399.5 kB / 0.7623 GB, free: 201.4 MB / 0.5919 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.004925/1.13, allocations: 2.468 MB / 0.7647 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/1.131, allocations: 466.1 kB / 0.7652 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.147, allocations: 8.244 MB / 0.7732 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.735e-05/1.148, allocations: 31.44 kB / 0.7733 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.999e-05/1.148, allocations: 12.38 kB / 0.7733 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.521e-05/1.148, allocations: 12.77 kB / 0.7733 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/1.175, allocations: 16.74 MB / 0.7896 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.302e-05/1.175, allocations: 3.938 kB / 0.7896 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/1.177, allocations: 300.7 kB / 0.7899 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009471/1.186, allocations: 3.804 MB / 0.7936 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004615/1.187, allocations: 43.69 kB / 0.7937 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02855/1.215, allocations: 27.35 MB / 0.8204 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.215, allocations: 15.59 kB / 0.8204 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01758/1.233, allocations: 12.15 MB / 0.8323 GB, free: 157.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.235, allocations: 0.9774 MB / 0.8332 GB, free: 156.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008035/1.236, allocations: 47.94 kB / 0.8333 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002148/1.238, allocations: 170.7 kB / 0.8334 GB, free: 156.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007056/1.239, allocations: 194.6 kB / 0.8336 GB, free: 156.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/1.239, allocations: 75.66 kB / 0.8337 GB, free: 156.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004208/1.243, allocations: 3.063 MB / 0.8367 GB, free: 153 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/1.243, allocations: 0 / 0.8367 GB, free: 153 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006477/1.25, allocations: 1.428 MB / 0.8381 GB, free: 151.6 MB / 0.5919 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.01789/1.268, allocations: 12.83 MB / 0.8506 GB, free: 138.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01278/1.281, allocations: 8.207 MB / 0.8586 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.281, allocations: 4 kB / 0.8586 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004997/1.286, allocations: 3.495 MB / 0.862 GB, free: 127 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/1.29, allocations: 0.612 MB / 0.8626 GB, free: 126.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08866/1.378, allocations: 64.46 MB / 0.9256 GB, free: 55.75 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004551/1.383, allocations: 3.93 MB / 0.9294 GB, free: 51.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004336/1.387, allocations: 2.028 MB / 0.9314 GB, free: 49.77 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003767/1.391, allocations: 2.37 MB / 0.9337 GB, free: 47.41 MB / 0.5919 GB Notification: Performance of SimCode: time 1.643e-06/1.391, allocations: 0 / 0.9337 GB, free: 47.41 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3853/1.776, allocations: 113.3 MB / 1.044 GB, free: 162 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.77/23.55, allocations: 15.61 kB / 1.044 GB, free: 162 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches