Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007988/0.0007988, allocations: 100.2 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008945/0.0008949, allocations: 199.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.8 MB / 246.9 MB, free: 9.711 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2196/0.2196, allocations: 46.2 MB / 345.3 MB, free: 11.12 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 11.98 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1221, allocations: 63.56 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3023/0.4245, allocations: 60.38 MB / 0.5308 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02905/0.4536, allocations: 12.71 MB / 0.5432 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01591/0.4695, allocations: 273.6 kB / 0.5435 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.472, allocations: 0.5019 MB / 0.544 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007121/0.4791, allocations: 2.037 MB / 0.546 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.4817, allocations: 0.9917 MB / 0.5469 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.4959, allocations: 9.254 MB / 0.556 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0119/0.5079, allocations: 6.287 MB / 0.5621 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004404/0.5123, allocations: 1.506 MB / 0.5636 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005128/0.5175, allocations: 2.573 MB / 0.5661 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001516/0.519, allocations: 176 kB / 0.5662 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004096/0.5232, allocations: 1.26 MB / 0.5675 GB, free: 184 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003695/0.5269, allocations: 2.17 MB / 0.5696 GB, free: 14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005477/0.5324, allocations: 2.455 MB / 0.572 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.5451, allocations: 8.163 MB / 0.58 GB, free: 3.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5452, allocations: 3.938 kB / 0.58 GB, free: 3.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.5452, allocations: 0 / 0.58 GB, free: 3.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003507/0.5455, allocations: 4 kB / 0.58 GB, free: 3.328 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.01642/0.562, allocations: 5.155 MB / 0.585 GB, free: 14.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.562, allocations: 12.03 kB / 0.585 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/0.5754, allocations: 2.572 MB / 0.5875 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01048/0.586, allocations: 3.851 MB / 0.5913 GB, free: 7.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.5863, allocations: 283.8 kB / 0.5916 GB, free: 7.324 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.5878, allocations: 391.6 kB / 0.5919 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.6121, allocations: 12.02 MB / 0.6037 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001868/0.6124, allocations: 59.44 kB / 0.6037 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005288/0.6129, allocations: 179.8 kB / 0.6039 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003824/0.6167, allocations: 2.143 MB / 0.606 GB, free: 7.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0234/0.6402, allocations: 10.38 MB / 0.6161 GB, free: 13.35 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06719/0.7074, allocations: 47.52 MB / 0.6625 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/0.7232, allocations: 5.827 MB / 0.6682 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004285/0.7275, allocations: 2.98 MB / 0.6711 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01506/0.7426, allocations: 8.873 MB / 0.6798 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.04e-05/0.7427, allocations: 59.81 kB / 0.6799 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 4.278e-06/0.7427, allocations: 0 / 0.6799 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.3968/1.14, allocations: 34.97 MB / 0.714 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.259e-05/1.14, allocations: 212.8 kB / 0.7142 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009161/1.149, allocations: 4.755 MB / 0.7189 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007465/1.15, allocations: 68.89 kB / 0.7189 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002671/1.152, allocations: 3.548 MB / 0.7224 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00138/1.154, allocations: 0.9698 MB / 0.7233 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009093/1.155, allocations: 0.5985 MB / 0.7239 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.738e-05/1.155, allocations: 310 kB / 0.7242 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004773/1.159, allocations: 3.17 MB / 0.7273 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007006/1.167, allocations: 7.047 MB / 0.7342 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.178, allocations: 10.95 MB / 0.7449 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/1.178, allocations: 39.09 kB / 0.7449 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02709/1.205, allocations: 13.76 MB / 0.7584 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.059e-05/1.206, allocations: 67.98 kB / 0.7584 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/1.206, allocations: 132 kB / 0.7586 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01179/1.217, allocations: 4.394 MB / 0.7628 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004777/1.222, allocations: 1.478 MB / 0.7643 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.032/1.254, allocations: 26.86 MB / 0.7905 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006681/1.261, allocations: 411.3 kB / 0.7909 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001304/1.262, allocations: 410.9 kB / 0.7913 GB, free: 115.4 MB / 0.5294 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.004204/1.267, allocations: 2.463 MB / 0.7937 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.268, allocations: 434.4 kB / 0.7941 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01587/1.284, allocations: 8.494 MB / 0.8024 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.505e-05/1.284, allocations: 28 kB / 0.8024 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-05/1.284, allocations: 12 kB / 0.8025 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-05/1.284, allocations: 11.95 kB / 0.8025 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02934/1.313, allocations: 17.07 MB / 0.8191 GB, free: 86.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.82e-05/1.313, allocations: 7.984 kB / 0.8192 GB, free: 86.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/1.315, allocations: 295.6 kB / 0.8194 GB, free: 86.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/1.326, allocations: 4.106 MB / 0.8234 GB, free: 82.31 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004915/1.326, allocations: 51.61 kB / 0.8235 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03027/1.356, allocations: 25.65 MB / 0.8485 GB, free: 56.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/1.356, allocations: 7.938 kB / 0.8486 GB, free: 56.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02057/1.377, allocations: 12.43 MB / 0.8607 GB, free: 43.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.379, allocations: 495.3 kB / 0.8612 GB, free: 43.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006914/1.38, allocations: 52.06 kB / 0.8612 GB, free: 43.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/1.382, allocations: 171.8 kB / 0.8614 GB, free: 42.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006949/1.382, allocations: 190 kB / 0.8616 GB, free: 42.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.383, allocations: 72 kB / 0.8616 GB, free: 42.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003753/1.386, allocations: 3.013 MB / 0.8646 GB, free: 39.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.386, allocations: 0 / 0.8646 GB, free: 39.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006138/1.393, allocations: 1.452 MB / 0.866 GB, free: 38.19 MB / 0.5294 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.0005192/1.393, allocations: 184.2 kB / 0.8662 GB, free: 38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01193/1.405, allocations: 8.419 MB / 0.8744 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.405, allocations: 0 / 0.8744 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00514/1.41, allocations: 3.574 MB / 0.8779 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007261/1.418, allocations: 0.5416 MB / 0.8784 GB, free: 25.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02001/1.438, allocations: 15.03 MB / 0.8931 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004739/1.442, allocations: 3.919 MB / 0.8969 GB, free: 6.348 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005151/1.448, allocations: 1.999 MB / 0.8989 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.449, allocations: 279.4 kB / 0.8991 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/1.449, allocations: 0 / 0.8991 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of Templates: time 0.33/1.779, allocations: 68.2 MB / 0.9657 GB, free: 124.7 MB / 0.5294 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches