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: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 117.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.00114/0.00114, allocations: 200.6 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.531/1.531, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4038, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01796/0.4218, allocations: 13.38 MB / 0.544 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.4361, allocations: 4.796 MB / 0.5487 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004672/0.4408, allocations: 93.84 kB / 0.5488 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008134/0.449, allocations: 3.735 MB / 0.5525 GB, free: 11.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007617/0.4567, allocations: 2.155 MB / 0.5546 GB, free: 9.492 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003079/0.4598, allocations: 1.08 MB / 0.5556 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.4701, allocations: 6.665 MB / 0.5621 GB, free: 1.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007287/0.4775, allocations: 4.502 MB / 0.5665 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005558/0.4831, allocations: 2.021 MB / 0.5685 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005914/0.489, allocations: 2.73 MB / 0.5712 GB, free: 8.398 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002177/0.4912, allocations: 431.9 kB / 0.5716 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004153/0.4954, allocations: 1.44 MB / 0.573 GB, free: 6.535 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003925/0.4994, allocations: 2.439 MB / 0.5754 GB, free: 4.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005473/0.5049, allocations: 2.765 MB / 0.5781 GB, free: 1.309 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01314/0.518, allocations: 8.784 MB / 0.5866 GB, free: 8.492 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.5181, allocations: 0 / 0.5866 GB, free: 8.492 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5181, allocations: 0 / 0.5866 GB, free: 8.492 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003297/0.5184, allocations: 0 / 0.5866 GB, free: 8.492 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.01856/0.537, allocations: 6.401 MB / 0.5929 GB, free: 2.008 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.5371, allocations: 8.031 kB / 0.5929 GB, free: 2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01195/0.549, allocations: 2.564 MB / 0.5954 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/0.5628, allocations: 3.951 MB / 0.5993 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003994/0.5633, allocations: 287.7 kB / 0.5995 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002376/0.5657, allocations: 391.7 kB / 0.5999 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02868/0.5944, allocations: 12 MB / 0.6116 GB, free: 13.97 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003086/0.5947, allocations: 55.59 kB / 0.6117 GB, free: 13.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/0.5963, allocations: 179.8 kB / 0.6119 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003693/0.6, allocations: 2.143 MB / 0.614 GB, free: 11.59 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/0.6217, allocations: 10.37 MB / 0.6241 GB, free: 1.207 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06694/0.6887, allocations: 47.36 MB / 0.6703 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01516/0.7039, allocations: 5.827 MB / 0.676 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004566/0.7085, allocations: 2.98 MB / 0.6789 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01585/0.7244, allocations: 8.874 MB / 0.6876 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/0.7245, allocations: 55.81 kB / 0.6876 GB, free: 14.44 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 8.275e-06/0.7245, allocations: 0 / 0.6876 GB, free: 14.44 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4876/1.212, allocations: 35.21 MB / 0.722 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/1.212, allocations: 208.7 kB / 0.7222 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009676/1.222, allocations: 4.77 MB / 0.7269 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007406/1.223, allocations: 66.45 kB / 0.7269 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002527/1.225, allocations: 3.677 MB / 0.7305 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001496/1.227, allocations: 1.014 MB / 0.7315 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002121/1.229, allocations: 1.432 MB / 0.7329 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.56e-05/1.229, allocations: 305.1 kB / 0.7332 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004239/1.233, allocations: 3.176 MB / 0.7363 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006289/1.24, allocations: 7.044 MB / 0.7432 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/1.251, allocations: 10.95 MB / 0.7539 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001512/1.252, allocations: 39.94 kB / 0.7539 GB, free: 142 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02526/1.277, allocations: 13.76 MB / 0.7674 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.1e-05/1.277, allocations: 69.12 kB / 0.7674 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/1.277, allocations: 136 kB / 0.7676 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/1.288, allocations: 4.391 MB / 0.7719 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004972/1.293, allocations: 1.47 MB / 0.7733 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03211/1.326, allocations: 29.05 MB / 0.8017 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007476/1.333, allocations: 418.2 kB / 0.8021 GB, free: 92.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001392/1.335, allocations: 411.7 kB / 0.8024 GB, free: 91.96 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (798): * Single equations (assignments): 792 * 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.004887/1.339, allocations: 2.477 MB / 0.8049 GB, free: 89.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/1.341, allocations: 459.7 kB / 0.8053 GB, free: 89.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/1.355, allocations: 8.478 MB / 0.8136 GB, free: 80.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.37e-05/1.355, allocations: 28 kB / 0.8136 GB, free: 80.56 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.471e-05/1.355, allocations: 15.94 kB / 0.8136 GB, free: 80.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-05/1.355, allocations: 15.95 kB / 0.8136 GB, free: 80.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02707/1.383, allocations: 16.92 MB / 0.8302 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.049e-05/1.383, allocations: 4 kB / 0.8302 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/1.384, allocations: 299.5 kB / 0.8305 GB, free: 63.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009523/1.394, allocations: 3.965 MB / 0.8343 GB, free: 59.22 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/1.394, allocations: 47.98 kB / 0.8344 GB, free: 59.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02931/1.423, allocations: 27.8 MB / 0.8615 GB, free: 30.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/1.423, allocations: 10.28 kB / 0.8615 GB, free: 30.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0183/1.442, allocations: 12.46 MB / 0.8737 GB, free: 18.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/1.443, allocations: 0.5097 MB / 0.8742 GB, free: 17.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006813/1.444, allocations: 51.98 kB / 0.8743 GB, free: 17.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.446, allocations: 167.7 kB / 0.8744 GB, free: 17.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007161/1.447, allocations: 194 kB / 0.8746 GB, free: 17.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.447, allocations: 71.36 kB / 0.8747 GB, free: 17.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003774/1.451, allocations: 3.009 MB / 0.8776 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.451, allocations: 0 / 0.8776 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006855/1.458, allocations: 1.453 MB / 0.879 GB, free: 12.88 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.0005446/1.458, allocations: 186.5 kB / 0.8792 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01208/1.47, allocations: 8.477 MB / 0.8875 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.47, allocations: 0 / 0.8875 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005429/1.476, allocations: 3.536 MB / 0.8909 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/1.48, allocations: 0.5892 MB / 0.8915 GB, free: 44 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02411/1.504, allocations: 12.59 MB / 0.9038 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006462/1.511, allocations: 3.915 MB / 0.9076 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005703/1.516, allocations: 1.999 MB / 0.9096 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/1.518, allocations: 279.4 kB / 0.9098 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of SimCode: time 1.102e-06/1.518, allocations: 4 kB / 0.9098 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of Templates: time 0.3989/1.917, allocations: 69.14 MB / 0.9774 GB, free: 200 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches