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.001017/0.001017, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2217/0.2217, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 80.44 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1249, allocations: 62.45 MB / 481.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01472/0.1396, allocations: 13.37 MB / 494.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1506, allocations: 4.801 MB / 499.6 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003117/0.1538, allocations: 95.69 kB / 499.7 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007146/0.161, allocations: 3.726 MB / 0.4916 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005963/0.1669, allocations: 2.151 MB / 0.4937 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002492/0.1695, allocations: 1.084 MB / 0.4948 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009555/0.179, allocations: 6.662 MB / 0.5013 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2709/0.45, allocations: 4.494 MB / 0.5057 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005524/0.4555, allocations: 2.022 MB / 0.5077 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005084/0.4607, allocations: 2.739 MB / 0.5103 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.4619, allocations: 428.2 kB / 0.5108 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003448/0.4654, allocations: 1.433 MB / 0.5122 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003442/0.4688, allocations: 2.437 MB / 0.5145 GB, free: 15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005946/0.4748, allocations: 2.764 MB / 0.5172 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01378/0.4886, allocations: 8.758 MB / 0.5258 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4886, allocations: 1.719 kB / 0.5258 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4887, allocations: 0 / 0.5258 GB, free: 12.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003685/0.489, allocations: 3.938 kB / 0.5258 GB, free: 12.07 MB / 382.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.02003/0.5091, allocations: 6.233 MB / 0.5319 GB, free: 8.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.5091, allocations: 8.25 kB / 0.5319 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01085/0.52, allocations: 2.531 MB / 0.5344 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.5316, allocations: 3.936 MB / 0.5382 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.5319, allocations: 291.1 kB / 0.5385 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001427/0.5333, allocations: 379.8 kB / 0.5388 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/0.5553, allocations: 12.01 MB / 0.5506 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001922/0.5556, allocations: 63.14 kB / 0.5506 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000574/0.5562, allocations: 177 kB / 0.5508 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003322/0.5595, allocations: 2.143 MB / 0.5529 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02155/0.5811, allocations: 10.37 MB / 0.563 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06366/0.6447, allocations: 47.27 MB / 0.6092 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01397/0.6587, allocations: 5.822 MB / 0.6149 GB, free: 9.066 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003853/0.6626, allocations: 2.984 MB / 0.6178 GB, free: 6.074 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/0.6783, allocations: 8.866 MB / 0.6264 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.6784, allocations: 55.88 kB / 0.6265 GB, free: 13.05 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.919e-06/0.6784, allocations: 0 / 0.6265 GB, free: 13.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.1179/0.7963, allocations: 34.9 MB / 0.6606 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.7965, allocations: 215.1 kB / 0.6608 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007353/0.8038, allocations: 4.764 MB / 0.6654 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006769/0.8045, allocations: 61.7 kB / 0.6655 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002468/0.807, allocations: 3.538 MB / 0.6689 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001428/0.8084, allocations: 0.9742 MB / 0.6699 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002142/0.8106, allocations: 1.421 MB / 0.6713 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.8107, allocations: 309.1 kB / 0.6716 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004418/0.8151, allocations: 3.18 MB / 0.6747 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006841/0.822, allocations: 7.042 MB / 0.6816 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/0.8342, allocations: 10.95 MB / 0.6923 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.475e-05/0.8343, allocations: 40 kB / 0.6923 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02688/0.8612, allocations: 13.74 MB / 0.7057 GB, free: 8.691 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.8613, allocations: 67.94 kB / 0.7058 GB, free: 8.625 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001895/0.8615, allocations: 132 kB / 0.7059 GB, free: 8.496 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01308/0.8746, allocations: 4.388 MB / 0.7102 GB, free: 4.098 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005688/0.8804, allocations: 1.478 MB / 0.7116 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2878/1.168, allocations: 29.02 MB / 0.74 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006615/1.175, allocations: 410.8 kB / 0.7404 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001389/1.176, allocations: 417.8 kB / 0.7408 GB, free: 176.3 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.005057/1.181, allocations: 2.476 MB / 0.7432 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/1.182, allocations: 433.1 kB / 0.7436 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/1.198, allocations: 8.482 MB / 0.7519 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.534e-05/1.198, allocations: 28.62 kB / 0.7519 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-05/1.198, allocations: 11.41 kB / 0.7519 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.163e-05/1.198, allocations: 14.94 kB / 0.7519 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03054/1.228, allocations: 17 MB / 0.7685 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.459e-05/1.228, allocations: 11.66 kB / 0.7686 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/1.23, allocations: 299.5 kB / 0.7688 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009921/1.24, allocations: 3.966 MB / 0.7727 GB, free: 156.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006965/1.241, allocations: 47.98 kB / 0.7728 GB, free: 156.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02977/1.27, allocations: 27.73 MB / 0.7998 GB, free: 128.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.27, allocations: 7.938 kB / 0.7998 GB, free: 128.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01881/1.289, allocations: 12.43 MB / 0.812 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.291, allocations: 0.495 MB / 0.8125 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009693/1.292, allocations: 45.67 kB / 0.8125 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.294, allocations: 173.7 kB / 0.8127 GB, free: 115.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006941/1.295, allocations: 190 kB / 0.8129 GB, free: 115.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002176/1.295, allocations: 75.94 kB / 0.8129 GB, free: 115 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004165/1.299, allocations: 3.005 MB / 0.8159 GB, free: 112 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.82e-07/1.299, allocations: 0 / 0.8159 GB, free: 112 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007317/1.306, allocations: 1.452 MB / 0.8173 GB, free: 110.6 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.0006078/1.307, allocations: 193.2 kB / 0.8175 GB, free: 110.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01187/1.319, allocations: 8.466 MB / 0.8257 GB, free: 101.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/1.319, allocations: 4 kB / 0.8257 GB, free: 101.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004711/1.324, allocations: 3.534 MB / 0.8292 GB, free: 98.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/1.327, allocations: 0.5858 MB / 0.8298 GB, free: 97.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/1.346, allocations: 12.42 MB / 0.8419 GB, free: 85.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003912/1.35, allocations: 3.906 MB / 0.8457 GB, free: 81.36 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003911/1.354, allocations: 1.999 MB / 0.8477 GB, free: 79.36 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007502/1.355, allocations: 287.4 kB / 0.8479 GB, free: 79.08 MB / 0.545 GB Notification: Performance of SimCode: time 1.633e-06/1.355, allocations: 0 / 0.8479 GB, free: 79.08 MB / 0.545 GB Notification: Performance of Templates: time 0.1007/1.455, allocations: 66.69 MB / 0.9131 GB, free: 12.7 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 -s cvode -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/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