Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002184/0.002184, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002507/0.002507, allocations: 211.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.584/1.584, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2373/0.2373, allocations: 46.96 MB / 360.9 MB, free: 4.059 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 67.89 kB / 0.4966 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.417, allocations: 66.03 MB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01552/0.4325, allocations: 11.66 MB / 0.5725 GB, free: 8.477 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.4453, allocations: 4.598 MB / 0.5769 GB, free: 3.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002731/0.448, allocations: 111.4 kB / 0.5771 GB, free: 3.758 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008262/0.4563, allocations: 3.633 MB / 0.5806 GB, free: 116 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00712/0.4634, allocations: 2.229 MB / 0.5828 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0032/0.4666, allocations: 1.076 MB / 0.5838 GB, free: 12.8 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01146/0.478, allocations: 6.674 MB / 0.5903 GB, free: 6.113 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007338/0.4854, allocations: 3.52 MB / 0.5938 GB, free: 2.527 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005632/0.491, allocations: 2.068 MB / 0.5958 GB, free: 464 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006278/0.4973, allocations: 2.78 MB / 0.5985 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001855/0.4991, allocations: 428 kB / 0.5989 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003863/0.503, allocations: 1.342 MB / 0.6002 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003845/0.5069, allocations: 2.532 MB / 0.6027 GB, free: 9.363 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005783/0.5126, allocations: 2.07 MB / 0.6047 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01533/0.528, allocations: 8.829 MB / 0.6134 GB, free: 14.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.528, allocations: 4 kB / 0.6134 GB, free: 14.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.528, allocations: 0 / 0.6134 GB, free: 14.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004305/0.5284, allocations: 3.938 kB / 0.6134 GB, free: 14.41 MB / 462.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.02046/0.5489, allocations: 6.318 MB / 0.6195 GB, free: 8.023 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.5489, allocations: 12.03 kB / 0.6195 GB, free: 8.012 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0129/0.5618, allocations: 2.552 MB / 0.622 GB, free: 5.453 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01342/0.5753, allocations: 3.887 MB / 0.6258 GB, free: 1.504 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005183/0.5758, allocations: 287.6 kB / 0.6261 GB, free: 1.223 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002569/0.5783, allocations: 387.7 kB / 0.6265 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02994/0.6083, allocations: 12.05 MB / 0.6382 GB, free: 3.988 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002444/0.6085, allocations: 55.59 kB / 0.6383 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009319/0.6095, allocations: 183.8 kB / 0.6385 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003628/0.6131, allocations: 2.147 MB / 0.6406 GB, free: 1.602 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02341/0.6365, allocations: 10.33 MB / 0.6507 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06604/0.7025, allocations: 43.63 MB / 0.6933 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/0.7177, allocations: 5.157 MB / 0.6983 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004172/0.7219, allocations: 2.69 MB / 0.7009 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0143/0.7362, allocations: 7.753 MB / 0.7085 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.215e-05/0.7362, allocations: 59.8 kB / 0.7086 GB, free: 10.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 5.58e-06/0.7362, allocations: 0 / 0.7086 GB, free: 10.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.3999/1.136, allocations: 35.07 MB / 0.7428 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/1.136, allocations: 212.2 kB / 0.743 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005026/1.141, allocations: 4.433 MB / 0.7473 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004311/1.142, allocations: 61.27 kB / 0.7474 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00169/1.143, allocations: 3.701 MB / 0.751 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000896/1.144, allocations: 1.016 MB / 0.752 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001551/1.146, allocations: 1.435 MB / 0.7534 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.622e-05/1.146, allocations: 305.1 kB / 0.7537 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/1.15, allocations: 3.17 MB / 0.7568 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004855/1.154, allocations: 7.099 MB / 0.7637 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009282/1.164, allocations: 10.94 MB / 0.7744 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.85e-05/1.164, allocations: 40 kB / 0.7744 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02294/1.187, allocations: 13.67 MB / 0.7878 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.681e-05/1.187, allocations: 64 kB / 0.7879 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/1.187, allocations: 136 kB / 0.788 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01129/1.198, allocations: 4.385 MB / 0.7923 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004497/1.203, allocations: 1.478 MB / 0.7937 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03211/1.235, allocations: 28.28 MB / 0.8213 GB, free: 77.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005639/1.24, allocations: 415.5 kB / 0.8217 GB, free: 77.44 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00094/1.241, allocations: 411.9 kB / 0.8221 GB, free: 77.04 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.003873/1.245, allocations: 2.471 MB / 0.8245 GB, free: 74.56 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.246, allocations: 417.2 kB / 0.8249 GB, free: 74.15 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/1.261, allocations: 8.384 MB / 0.8331 GB, free: 65.74 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.867e-05/1.261, allocations: 32 kB / 0.8332 GB, free: 65.71 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-05/1.261, allocations: 12 kB / 0.8332 GB, free: 65.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.526e-05/1.261, allocations: 11.95 kB / 0.8332 GB, free: 65.68 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02889/1.29, allocations: 15.17 MB / 0.848 GB, free: 50.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.031e-05/1.29, allocations: 4 kB / 0.848 GB, free: 50.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.292, allocations: 300.1 kB / 0.8483 GB, free: 50.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01003/1.302, allocations: 3.961 MB / 0.8522 GB, free: 46.19 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005664/1.302, allocations: 55.98 kB / 0.8522 GB, free: 46.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03081/1.333, allocations: 27.08 MB / 0.8786 GB, free: 18.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.333, allocations: 4 kB / 0.8787 GB, free: 18.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01974/1.353, allocations: 12.36 MB / 0.8907 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/1.355, allocations: 397 kB / 0.8911 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/1.356, allocations: 48 kB / 0.8911 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002397/1.358, allocations: 175.8 kB / 0.8913 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007245/1.359, allocations: 201.9 kB / 0.8915 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/1.359, allocations: 72 kB / 0.8916 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003574/1.363, allocations: 2.621 MB / 0.8941 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.363, allocations: 0 / 0.8941 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007086/1.37, allocations: 1.437 MB / 0.8955 GB, free: 1.309 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.0005822/1.371, allocations: 183.4 kB / 0.8957 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01482/1.385, allocations: 8.161 MB / 0.9037 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.385, allocations: 0.9375 kB / 0.9037 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006504/1.392, allocations: 3.311 MB / 0.9069 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/1.395, allocations: 0.5206 MB / 0.9074 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0244/1.42, allocations: 12.65 MB / 0.9198 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005836/1.426, allocations: 3.398 MB / 0.9231 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005019/1.431, allocations: 1.949 MB / 0.925 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009767/1.432, allocations: 259.4 kB / 0.9252 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of SimCode: time 1.693e-06/1.432, allocations: 0 / 0.9252 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of Templates: time 0.4376/1.869, allocations: 69.98 MB / 0.9936 GB, free: 210.7 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.963399969041348]