Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2148/0.2148, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3943, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01535/0.4096, allocations: 13.38 MB / 0.5436 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.4225, allocations: 4.803 MB / 0.5483 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004452/0.427, allocations: 94.66 kB / 0.5484 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007794/0.4349, allocations: 3.724 MB / 0.552 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007232/0.4421, allocations: 2.214 MB / 0.5541 GB, free: 9.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002731/0.4449, allocations: 1.076 MB / 0.5552 GB, free: 8.406 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009362/0.4543, allocations: 6.662 MB / 0.5617 GB, free: 1.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005271/0.4596, allocations: 4.505 MB / 0.5661 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003405/0.463, allocations: 2.021 MB / 0.5681 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003993/0.467, allocations: 2.742 MB / 0.5708 GB, free: 8.383 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.4683, allocations: 432 kB / 0.5712 GB, free: 7.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.4713, allocations: 1.447 MB / 0.5726 GB, free: 6.512 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002788/0.4741, allocations: 2.474 MB / 0.575 GB, free: 4.031 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003745/0.4779, allocations: 2.828 MB / 0.5778 GB, free: 1.188 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.4908, allocations: 8.939 MB / 0.5865 GB, free: 8.215 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.4909, allocations: 4 kB / 0.5865 GB, free: 8.211 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.669e-06/0.491, allocations: 0 / 0.5865 GB, free: 8.211 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.00046/0.4914, allocations: 0 / 0.5865 GB, free: 8.211 MB / 446.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.0165/0.5079, allocations: 6.6 MB / 0.5929 GB, free: 1.527 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.508, allocations: 11.97 kB / 0.5929 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001799/0.5098, allocations: 0.9082 MB / 0.5938 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03436/0.5442, allocations: 6.051 MB / 0.5997 GB, free: 10.53 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.5543, allocations: 4.67 MB / 0.6043 GB, free: 5.809 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002745/0.5546, allocations: 283.5 kB / 0.6046 GB, free: 5.531 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001719/0.5563, allocations: 391.7 kB / 0.605 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.579, allocations: 11.9 MB / 0.6166 GB, free: 8.457 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002416/0.5793, allocations: 67.52 kB / 0.6166 GB, free: 8.391 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/0.5804, allocations: 175.9 kB / 0.6168 GB, free: 8.219 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003128/0.5835, allocations: 2.14 MB / 0.6189 GB, free: 6.078 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01985/0.6034, allocations: 10.16 MB / 0.6288 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06036/0.6638, allocations: 47.13 MB / 0.6748 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01494/0.6788, allocations: 5.78 MB / 0.6805 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/0.6828, allocations: 2.942 MB / 0.6834 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01493/0.6977, allocations: 8.773 MB / 0.6919 GB, free: 9.609 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/0.6978, allocations: 59.81 kB / 0.692 GB, free: 9.543 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 6.171e-06/0.6979, allocations: 0 / 0.692 GB, free: 9.543 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.3902/1.088, allocations: 34.97 MB / 0.7261 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/1.088, allocations: 212 kB / 0.7263 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007299/1.096, allocations: 4.804 MB / 0.731 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005332/1.096, allocations: 62.73 kB / 0.7311 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002111/1.098, allocations: 3.724 MB / 0.7347 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.099, allocations: 1.014 MB / 0.7357 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/1.101, allocations: 1.355 MB / 0.737 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.788e-05/1.101, allocations: 307.1 kB / 0.7373 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003445/1.104, allocations: 3.029 MB / 0.7403 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004801/1.109, allocations: 6.842 MB / 0.747 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008802/1.118, allocations: 10.67 MB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.001e-05/1.118, allocations: 40 kB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02313/1.141, allocations: 13.23 MB / 0.7703 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/1.142, allocations: 64 kB / 0.7704 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/1.142, allocations: 132.8 kB / 0.7705 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/1.152, allocations: 4.23 MB / 0.7747 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004258/1.156, allocations: 1.412 MB / 0.776 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03138/1.188, allocations: 28.59 MB / 0.804 GB, free: 90.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005944/1.194, allocations: 395.5 kB / 0.8043 GB, free: 90.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.195, allocations: 400 kB / 0.8047 GB, free: 89.66 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.005153/1.201, allocations: 2.466 MB / 0.8071 GB, free: 87.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/1.202, allocations: 476.4 kB / 0.8076 GB, free: 86.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/1.217, allocations: 8.23 MB / 0.8156 GB, free: 78.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.707e-05/1.217, allocations: 28 kB / 0.8156 GB, free: 78.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.969e-05/1.217, allocations: 15.94 kB / 0.8157 GB, free: 78.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.119e-05/1.217, allocations: 15.95 kB / 0.8157 GB, free: 78.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02683/1.244, allocations: 16.73 MB / 0.832 GB, free: 61.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/1.244, allocations: 4 kB / 0.832 GB, free: 61.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/1.245, allocations: 295.6 kB / 0.8323 GB, free: 61.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009045/1.254, allocations: 3.805 MB / 0.836 GB, free: 57.45 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000409/1.255, allocations: 51.94 kB / 0.8361 GB, free: 57.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02842/1.283, allocations: 27.35 MB / 0.8628 GB, free: 29.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/1.283, allocations: 15.88 kB / 0.8628 GB, free: 29.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0182/1.301, allocations: 12.14 MB / 0.8746 GB, free: 17.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/1.303, allocations: 0.5018 MB / 0.8751 GB, free: 16.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/1.304, allocations: 48 kB / 0.8752 GB, free: 16.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/1.306, allocations: 171.1 kB / 0.8753 GB, free: 16.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007756/1.307, allocations: 194.1 kB / 0.8755 GB, free: 16.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001934/1.307, allocations: 68 kB / 0.8756 GB, free: 16.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004314/1.312, allocations: 3.039 MB / 0.8786 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.312, allocations: 0 / 0.8786 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008408/1.32, allocations: 1.402 MB / 0.8799 GB, free: 11.9 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.01826/1.338, allocations: 12.82 MB / 0.8924 GB, free: 14.93 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01358/1.352, allocations: 8.221 MB / 0.9005 GB, free: 6.699 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.352, allocations: 0 / 0.9005 GB, free: 6.699 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005879/1.358, allocations: 3.51 MB / 0.9039 GB, free: 3.152 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004448/1.362, allocations: 0.6173 MB / 0.9045 GB, free: 2.543 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.457/1.819, allocations: 64.22 MB / 0.9672 GB, free: 201.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/1.823, allocations: 3.918 MB / 0.9711 GB, free: 200 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003924/1.827, allocations: 2.009 MB / 0.973 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002672/1.83, allocations: 2.366 MB / 0.9753 GB, free: 198 MB / 0.6231 GB Notification: Performance of SimCode: time 1.323e-06/1.83, allocations: 0 / 0.9753 GB, free: 198 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/1.989, allocations: 112.9 MB / 1.086 GB, free: 89.41 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.23/24.22, allocations: 22.55 kB / 1.086 GB, free: 89.39 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches