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.001437/0.001437, allocations: 104.1 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2637/0.2637, allocations: 46.1 MB / 343.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001484, allocations: 73.66 kB / 417 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1182, allocations: 62.44 MB / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3895/0.5077, allocations: 61.94 MB / 0.5287 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03744/0.5452, allocations: 12.66 MB / 0.5411 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0226/0.568, allocations: 280.3 kB / 0.5414 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007678/0.5757, allocations: 3.593 MB / 0.5449 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007328/0.5831, allocations: 2.011 MB / 0.5468 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.5861, allocations: 1.005 MB / 0.5478 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009808/0.5959, allocations: 7.042 MB / 0.5547 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00649/0.6024, allocations: 4.75 MB / 0.5593 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004138/0.6066, allocations: 2.06 MB / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005026/0.6117, allocations: 3.05 MB / 0.5643 GB, free: 448 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.6129, allocations: 432 kB / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003071/0.616, allocations: 1.455 MB / 0.5662 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003046/0.6191, allocations: 2.478 MB / 0.5686 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004262/0.6234, allocations: 2.8 MB / 0.5713 GB, free: 9.258 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.6355, allocations: 8.563 MB / 0.5797 GB, free: 0.668 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.291e-05/0.6356, allocations: 0 / 0.5797 GB, free: 0.668 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6356, allocations: 0 / 0.5797 GB, free: 0.668 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004223/0.636, allocations: 0 / 0.5797 GB, free: 0.668 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.01712/0.6532, allocations: 6.239 MB / 0.5858 GB, free: 10.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.6532, allocations: 8.031 kB / 0.5858 GB, free: 10.35 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.6646, allocations: 2.529 MB / 0.5882 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008128/0.6727, allocations: 3.844 MB / 0.592 GB, free: 3.91 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.673, allocations: 283.8 kB / 0.5923 GB, free: 3.633 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/0.6741, allocations: 387.6 kB / 0.5926 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.6956, allocations: 12.01 MB / 0.6044 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/0.6958, allocations: 59.48 kB / 0.6044 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005728/0.6964, allocations: 183.8 kB / 0.6046 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003428/0.6998, allocations: 2.143 MB / 0.6067 GB, free: 4.074 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02176/0.7216, allocations: 10.37 MB / 0.6168 GB, free: 9.68 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06605/0.7877, allocations: 47.49 MB / 0.6632 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0143/0.802, allocations: 5.822 MB / 0.6689 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003823/0.8059, allocations: 2.978 MB / 0.6718 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/0.8192, allocations: 8.873 MB / 0.6805 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/0.8192, allocations: 59.81 kB / 0.6805 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 4.499e-06/0.8192, allocations: 0 / 0.6805 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.1245/0.9438, allocations: 34.92 MB / 0.7146 GB, free: 3.816 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.9439, allocations: 209.9 kB / 0.7148 GB, free: 3.57 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2677/1.212, allocations: 4.758 MB / 0.7195 GB, free: 196.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008449/1.213, allocations: 63.45 kB / 0.7195 GB, free: 196.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003245/1.216, allocations: 3.541 MB / 0.723 GB, free: 195 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001383/1.217, allocations: 0.9729 MB / 0.7239 GB, free: 194.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00262/1.22, allocations: 1.421 MB / 0.7253 GB, free: 193.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.689e-05/1.22, allocations: 305.1 kB / 0.7256 GB, free: 193.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005175/1.225, allocations: 3.173 MB / 0.7287 GB, free: 192.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007656/1.233, allocations: 7.042 MB / 0.7356 GB, free: 185.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01648/1.249, allocations: 10.95 MB / 0.7463 GB, free: 177.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003513/1.25, allocations: 37.41 kB / 0.7463 GB, free: 177.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03161/1.281, allocations: 13.76 MB / 0.7597 GB, free: 172.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002984/1.282, allocations: 62.28 kB / 0.7598 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000355/1.282, allocations: 134.5 kB / 0.7599 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/1.295, allocations: 4.394 MB / 0.7642 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00509/1.3, allocations: 1.481 MB / 0.7657 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03548/1.335, allocations: 29.05 MB / 0.794 GB, free: 141.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007133/1.342, allocations: 407.4 kB / 0.7944 GB, free: 141.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.344, allocations: 414.4 kB / 0.7948 GB, free: 140.8 MB / 0.545 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.005927/1.35, allocations: 2.463 MB / 0.7972 GB, free: 138.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/1.352, allocations: 438.3 kB / 0.7976 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01669/1.368, allocations: 8.479 MB / 0.8059 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.747e-05/1.368, allocations: 28 kB / 0.806 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.093e-05/1.368, allocations: 12 kB / 0.806 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.272e-05/1.368, allocations: 15.7 kB / 0.806 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/1.402, allocations: 17.08 MB / 0.8227 GB, free: 112.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.043e-05/1.402, allocations: 6.375 kB / 0.8227 GB, free: 112.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/1.403, allocations: 303.5 kB / 0.823 GB, free: 111.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009891/1.413, allocations: 3.98 MB / 0.8268 GB, free: 107.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006015/1.414, allocations: 52 kB / 0.8269 GB, free: 107.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03201/1.446, allocations: 27.75 MB / 0.854 GB, free: 79.64 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/1.446, allocations: 7.938 kB / 0.854 GB, free: 79.63 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02019/1.466, allocations: 12.43 MB / 0.8661 GB, free: 67.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/1.468, allocations: 487.4 kB / 0.8666 GB, free: 66.56 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001664/1.469, allocations: 47.98 kB / 0.8666 GB, free: 66.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003934/1.473, allocations: 175.8 kB / 0.8668 GB, free: 66.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/1.475, allocations: 186 kB / 0.867 GB, free: 66.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005048/1.475, allocations: 75.91 kB / 0.8671 GB, free: 66.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005458/1.481, allocations: 3.005 MB / 0.87 GB, free: 63.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.91e-07/1.481, allocations: 4 kB / 0.87 GB, free: 63.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008094/1.489, allocations: 1.444 MB / 0.8714 GB, free: 61.64 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.0009738/1.49, allocations: 196.2 kB / 0.8716 GB, free: 61.45 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01624/1.506, allocations: 10.01 MB / 0.8814 GB, free: 51.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/1.506, allocations: 0 / 0.8814 GB, free: 51.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005711/1.512, allocations: 3.531 MB / 0.8848 GB, free: 47.88 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005532/1.517, allocations: 0.5875 MB / 0.8854 GB, free: 47.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/1.538, allocations: 14.97 MB / 0.9 GB, free: 32.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00518/1.543, allocations: 3.919 MB / 0.9038 GB, free: 28.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004905/1.548, allocations: 1.999 MB / 0.9058 GB, free: 26.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000957/1.549, allocations: 283.4 kB / 0.9061 GB, free: 26.02 MB / 0.545 GB Notification: Performance of SimCode: time 1.192e-06/1.549, allocations: 0 / 0.9061 GB, free: 26.02 MB / 0.545 GB Notification: Performance of Templates: time 0.3457/1.895, allocations: 72.52 MB / 0.9769 GB, free: 149.5 MB / 0.545 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