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.001413/0.001413, allocations: 122.2 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.00139/0.00139, allocations: 202 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.472/1.472, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2387/0.2387, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 79.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3746, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01637/0.3911, allocations: 13.38 MB / 0.5437 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01313/0.4042, allocations: 4.793 MB / 0.5484 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003404/0.4077, allocations: 94.72 kB / 0.5484 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007957/0.4157, allocations: 3.739 MB / 0.5521 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006769/0.4225, allocations: 2.148 MB / 0.5542 GB, free: 9.449 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00296/0.4255, allocations: 1.08 MB / 0.5553 GB, free: 8.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.4365, allocations: 6.658 MB / 0.5618 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007327/0.4439, allocations: 4.505 MB / 0.5662 GB, free: 13.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004175/0.4481, allocations: 2.017 MB / 0.5681 GB, free: 11.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005473/0.4536, allocations: 2.738 MB / 0.5708 GB, free: 8.355 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002015/0.4557, allocations: 432 kB / 0.5712 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0046/0.4603, allocations: 1.436 MB / 0.5726 GB, free: 6.496 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003769/0.4641, allocations: 2.439 MB / 0.575 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006538/0.4707, allocations: 2.832 MB / 0.5778 GB, free: 1.203 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.485, allocations: 8.935 MB / 0.5865 GB, free: 8.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.4851, allocations: 4 kB / 0.5865 GB, free: 8.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4851, allocations: 0 / 0.5865 GB, free: 8.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003188/0.4854, allocations: 0 / 0.5865 GB, free: 8.23 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.01808/0.5035, allocations: 6.597 MB / 0.5929 GB, free: 1.551 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.5036, allocations: 8.031 kB / 0.5929 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001933/0.5055, allocations: 0.9043 MB / 0.5938 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03811/0.5437, allocations: 6.047 MB / 0.5997 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/0.5544, allocations: 4.674 MB / 0.6043 GB, free: 5.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.5547, allocations: 283.5 kB / 0.6046 GB, free: 5.562 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/0.556, allocations: 387.7 kB / 0.6049 GB, free: 5.184 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.579, allocations: 11.91 MB / 0.6166 GB, free: 8.484 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000208/0.5792, allocations: 59.53 kB / 0.6166 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007114/0.5799, allocations: 175.9 kB / 0.6168 GB, free: 8.254 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003609/0.5836, allocations: 2.14 MB / 0.6189 GB, free: 6.113 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02194/0.6055, allocations: 10.17 MB / 0.6288 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06406/0.6696, allocations: 47.14 MB / 0.6748 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/0.6849, allocations: 5.778 MB / 0.6805 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004042/0.6889, allocations: 2.946 MB / 0.6834 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01397/0.7029, allocations: 8.761 MB / 0.6919 GB, free: 9.637 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.703, allocations: 59.8 kB / 0.692 GB, free: 9.57 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 4.649e-06/0.703, allocations: 0 / 0.692 GB, free: 9.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4002/1.103, allocations: 34.98 MB / 0.7261 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/1.103, allocations: 206.1 kB / 0.7263 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/1.11, allocations: 4.806 MB / 0.731 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005328/1.111, allocations: 61.45 kB / 0.7311 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001966/1.113, allocations: 3.722 MB / 0.7347 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.114, allocations: 1.014 MB / 0.7357 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/1.115, allocations: 1.355 MB / 0.737 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.494e-05/1.115, allocations: 303.1 kB / 0.7373 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/1.119, allocations: 3.029 MB / 0.7403 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004983/1.124, allocations: 6.847 MB / 0.747 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/1.134, allocations: 10.67 MB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.134, allocations: 40 kB / 0.7574 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02426/1.158, allocations: 13.24 MB / 0.7703 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/1.158, allocations: 64 kB / 0.7704 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/1.159, allocations: 136 kB / 0.7705 GB, free: 125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/1.17, allocations: 4.222 MB / 0.7747 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00442/1.174, allocations: 1.408 MB / 0.776 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03048/1.205, allocations: 28.6 MB / 0.804 GB, free: 90.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005959/1.211, allocations: 391.5 kB / 0.8043 GB, free: 89.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/1.212, allocations: 400 kB / 0.8047 GB, free: 89.59 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.004111/1.216, allocations: 2.458 MB / 0.8071 GB, free: 87.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.217, allocations: 476.8 kB / 0.8076 GB, free: 86.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/1.232, allocations: 8.23 MB / 0.8156 GB, free: 78.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.311e-05/1.232, allocations: 31.44 kB / 0.8156 GB, free: 78.37 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.81e-05/1.232, allocations: 12 kB / 0.8156 GB, free: 78.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.024e-05/1.232, allocations: 15.95 kB / 0.8157 GB, free: 78.34 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.259, allocations: 16.73 MB / 0.832 GB, free: 61.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.648e-05/1.259, allocations: 4 kB / 0.832 GB, free: 61.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/1.261, allocations: 303.5 kB / 0.8323 GB, free: 61.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009455/1.27, allocations: 3.804 MB / 0.836 GB, free: 57.38 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004795/1.271, allocations: 47.94 kB / 0.836 GB, free: 57.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02821/1.299, allocations: 27.35 MB / 0.8628 GB, free: 29.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/1.299, allocations: 11.94 kB / 0.8628 GB, free: 29.55 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/1.318, allocations: 12.14 MB / 0.8746 GB, free: 17.26 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/1.319, allocations: 0.5057 MB / 0.8751 GB, free: 16.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.32, allocations: 48 kB / 0.8752 GB, free: 16.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/1.323, allocations: 167.7 kB / 0.8753 GB, free: 16.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007748/1.323, allocations: 198.1 kB / 0.8755 GB, free: 16.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002011/1.324, allocations: 64 kB / 0.8756 GB, free: 16.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004854/1.328, allocations: 3.039 MB / 0.8785 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.91e-07/1.328, allocations: 0 / 0.8785 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007489/1.336, allocations: 1.406 MB / 0.8799 GB, free: 11.83 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.01908/1.355, allocations: 12.83 MB / 0.8924 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01533/1.37, allocations: 8.208 MB / 0.9005 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.37, allocations: 0 / 0.9005 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006479/1.377, allocations: 3.512 MB / 0.9039 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/1.381, allocations: 0.6139 MB / 0.9045 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4173/1.799, allocations: 64.23 MB / 0.9672 GB, free: 201.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003561/1.802, allocations: 3.921 MB / 0.971 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003554/1.806, 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.002326/1.808, allocations: 2.357 MB / 0.9753 GB, free: 197.9 MB / 0.6231 GB Notification: Performance of SimCode: time 7.41e-07/1.808, allocations: 0 / 0.9753 GB, free: 197.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1693/1.977, allocations: 112.9 MB / 1.086 GB, free: 89.32 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.45/24.43, allocations: 19.48 kB / 1.086 GB, free: 89.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/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