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.001148/0.001148, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 72.98 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1229, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01431/0.1373, allocations: 13.38 MB / 493.5 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.1485, allocations: 4.801 MB / 498.3 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003256/0.1518, allocations: 91.75 kB / 498.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007165/0.159, allocations: 3.738 MB / 0.4904 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00696/0.166, allocations: 2.148 MB / 0.4925 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003164/0.1692, allocations: 1.08 MB / 0.4935 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.1798, allocations: 6.655 MB / 0.5 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006813/0.1866, allocations: 4.502 MB / 0.5044 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2391/0.4257, allocations: 2.013 MB / 0.5064 GB, free: 16.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00443/0.4302, allocations: 2.737 MB / 0.5091 GB, free: 16.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.4316, allocations: 429.2 kB / 0.5095 GB, free: 16.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003265/0.4349, allocations: 1.434 MB / 0.5109 GB, free: 16.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004382/0.4393, allocations: 2.436 MB / 0.5132 GB, free: 16.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004506/0.4438, allocations: 2.832 MB / 0.516 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.4543, allocations: 8.663 MB / 0.5245 GB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4543, allocations: 0 / 0.5245 GB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4543, allocations: 0 / 0.5245 GB, free: 13.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003328/0.4547, allocations: 2.031 kB / 0.5245 GB, free: 13.53 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.0186/0.4733, allocations: 6.426 MB / 0.5307 GB, free: 9.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.4734, allocations: 9.625 kB / 0.5308 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001925/0.4753, allocations: 0.9089 MB / 0.5316 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03706/0.5124, allocations: 6.02 MB / 0.5375 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.523, allocations: 4.561 MB / 0.542 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.5233, allocations: 287.4 kB / 0.5422 GB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001967/0.5253, allocations: 390.4 kB / 0.5426 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03477/0.5601, allocations: 11.91 MB / 0.5542 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004159/0.5605, allocations: 59.67 kB / 0.5543 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/0.5625, allocations: 183.4 kB / 0.5545 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005215/0.5677, allocations: 2.138 MB / 0.5566 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03051/0.5983, allocations: 10.16 MB / 0.5665 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07167/0.67, allocations: 47.27 MB / 0.6127 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01574/0.6858, allocations: 5.781 MB / 0.6183 GB, free: 5.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004411/0.6902, allocations: 2.938 MB / 0.6212 GB, free: 2.805 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01776/0.708, allocations: 8.745 MB / 0.6297 GB, free: 9.961 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.695e-05/0.7082, allocations: 55.44 kB / 0.6298 GB, free: 9.902 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.929e-06/0.7082, allocations: 0 / 0.6298 GB, free: 9.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.1368/0.845, allocations: 34.69 MB / 0.6636 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.8452, allocations: 209.2 kB / 0.6638 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/0.8554, allocations: 4.796 MB / 0.6685 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007188/0.8562, allocations: 64.28 kB / 0.6686 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00334/0.8595, allocations: 3.595 MB / 0.6721 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001689/0.8612, allocations: 0.963 MB / 0.673 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004376/0.8656, allocations: 1.351 MB / 0.6744 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.8658, allocations: 309.1 kB / 0.6747 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006767/0.8726, allocations: 3.027 MB / 0.6776 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01065/0.8833, allocations: 6.835 MB / 0.6843 GB, free: 284 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01624/0.8996, allocations: 10.67 MB / 0.6947 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/0.8998, allocations: 40 kB / 0.6947 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.03629/0.9361, allocations: 13.21 MB / 0.7076 GB, free: 7.117 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.9363, allocations: 64 kB / 0.7077 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002509/0.9365, allocations: 132 kB / 0.7078 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/0.9496, allocations: 4.232 MB / 0.712 GB, free: 2.688 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005012/0.9547, allocations: 1.415 MB / 0.7134 GB, free: 1.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2786/1.233, allocations: 28.59 MB / 0.7413 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006389/1.24, allocations: 394.1 kB / 0.7416 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/1.241, allocations: 405.1 kB / 0.742 GB, free: 176 MB / 0.545 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.004773/1.246, allocations: 2.464 MB / 0.7444 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009183/1.247, allocations: 448.5 kB / 0.7449 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/1.262, allocations: 8.23 MB / 0.7529 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-05/1.262, allocations: 30.81 kB / 0.7529 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.707e-05/1.262, allocations: 11.44 kB / 0.7529 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.784e-05/1.262, allocations: 13.66 kB / 0.753 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03017/1.292, allocations: 16.89 MB / 0.7694 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.821e-05/1.292, allocations: 8 kB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/1.294, allocations: 295.6 kB / 0.7697 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009536/1.303, allocations: 3.806 MB / 0.7735 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000514/1.304, allocations: 49.66 kB / 0.7735 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02908/1.333, allocations: 27.31 MB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/1.333, allocations: 5.969 kB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01826/1.351, allocations: 12.11 MB / 0.812 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/1.353, allocations: 491.1 kB / 0.8125 GB, free: 116.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009692/1.354, allocations: 53.86 kB / 0.8125 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002242/1.356, allocations: 171.8 kB / 0.8127 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007756/1.357, allocations: 190 kB / 0.8129 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/1.357, allocations: 75.36 kB / 0.8129 GB, free: 115.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004512/1.362, allocations: 3.039 MB / 0.8159 GB, free: 112.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.362, allocations: 0 / 0.8159 GB, free: 112.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007358/1.369, allocations: 1.405 MB / 0.8173 GB, free: 111.2 MB / 0.545 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.01923/1.388, allocations: 12.79 MB / 0.8298 GB, free: 98.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01629/1.405, allocations: 9.754 MB / 0.8393 GB, free: 88.47 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/1.405, allocations: 0 / 0.8393 GB, free: 88.47 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005397/1.41, allocations: 3.485 MB / 0.8427 GB, free: 84.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004513/1.415, allocations: 0.604 MB / 0.8433 GB, free: 84.35 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0968/1.511, allocations: 73.68 MB / 0.9152 GB, free: 2.035 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2327/1.744, allocations: 3.912 MB / 0.9191 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006168/1.75, allocations: 2.007 MB / 0.921 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003853/1.754, allocations: 2.367 MB / 0.9233 GB, free: 187.7 MB / 0.545 GB Notification: Performance of SimCode: time 2.505e-06/1.754, allocations: 0 / 0.9233 GB, free: 187.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1701/1.924, allocations: 116.6 MB / 1.037 GB, free: 92.51 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.35/16.27, allocations: 11.47 kB / 1.037 GB, free: 92.5 MB / 0.545 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