Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008333/0.0008333, allocations: 89.62 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1916/0.1916, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.482e-05/4.484e-05, allocations: 4 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 63.25 MB / 0.5114 GB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4448/0.566, allocations: 109.3 MB / 0.6181 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5663, allocations: 74.28 kB / 0.6182 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2505/0.8169, allocations: 98.74 MB / 0.7146 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8169, allocations: 0 / 0.7146 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003027/0.8172, allocations: 88 kB / 0.7147 GB, free: 5.906 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01514/0.8324, allocations: 4.632 MB / 0.7192 GB, free: 1.203 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.8325, allocations: 8.031 kB / 0.7192 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02663/0.8591, allocations: 6.733 MB / 0.7258 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.8745, allocations: 5.36 MB / 0.7311 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004108/0.8749, allocations: 328.6 kB / 0.7314 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002366/0.8773, allocations: 443.7 kB / 0.7318 GB, free: 4.266 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/0.9041, allocations: 10.97 MB / 0.7425 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004515/0.9046, allocations: 67.33 kB / 0.7426 GB, free: 8.195 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001914/0.9065, allocations: 211.9 kB / 0.7428 GB, free: 7.988 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001734/0.9083, allocations: 1.022 MB / 0.7438 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3214/1.23, allocations: 9.15 MB / 0.7527 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04849/1.278, allocations: 47.6 MB / 0.7992 GB, free: 96.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009142/1.287, allocations: 4.103 MB / 0.8032 GB, free: 95.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/1.289, allocations: 1.812 MB / 0.805 GB, free: 95.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008734/1.298, allocations: 7.479 MB / 0.8123 GB, free: 92.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.298, allocations: 56.47 kB / 0.8123 GB, free: 92.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=180): time 3.727e-06/1.298, allocations: 0 / 0.8123 GB, free: 92.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236): time 0.07381/1.372, allocations: 25.59 MB / 0.8373 GB, free: 85.56 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/1.372, allocations: 211.6 kB / 0.8375 GB, free: 85.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004752/1.377, allocations: 3.74 MB / 0.8412 GB, free: 84.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00041/1.377, allocations: 67.91 kB / 0.8412 GB, free: 83.96 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001419/1.379, allocations: 3.232 MB / 0.8444 GB, free: 81.51 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006688/1.379, allocations: 0.8793 MB / 0.8453 GB, free: 80.86 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/1.38, allocations: 125.4 kB / 0.8454 GB, free: 80.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002381/1.38, allocations: 0.5691 MB / 0.8459 GB, free: 80.35 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003607/1.384, allocations: 3.365 MB / 0.8492 GB, free: 79.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00508/1.389, allocations: 6.987 MB / 0.856 GB, free: 72.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005188/1.394, allocations: 4.752 MB / 0.8607 GB, free: 71.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.963e-05/1.394, allocations: 38.12 kB / 0.8607 GB, free: 71.22 MB / 0.5261 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.03181/1.426, allocations: 15.34 MB / 0.8757 GB, free: 62.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.424e-05/1.426, allocations: 61 kB / 0.8758 GB, free: 62.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.866e-05/1.426, allocations: 124 kB / 0.8759 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02064/1.447, allocations: 5.929 MB / 0.8817 GB, free: 58.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004719/1.451, allocations: 1.437 MB / 0.8831 GB, free: 57.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02722/1.479, allocations: 24.96 MB / 0.9074 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005991/1.485, allocations: 391.4 kB / 0.9078 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.486, allocations: 380 kB / 0.9082 GB, free: 32.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 741 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001033/1.487, allocations: 0.5732 MB / 0.9087 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000724/1.488, allocations: 410.7 kB / 0.9091 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02494/1.512, allocations: 10.75 MB / 0.9196 GB, free: 20.47 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.617e-05/1.513, allocations: 28 kB / 0.9197 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.891e-05/1.513, allocations: 8 kB / 0.9197 GB, free: 20.43 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.875e-05/1.513, allocations: 15.95 kB / 0.9197 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03756/1.55, allocations: 20.14 MB / 0.9394 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.498e-05/1.55, allocations: 4 kB / 0.9394 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002077/1.552, allocations: 375.4 kB / 0.9397 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01934/1.572, allocations: 4.997 MB / 0.9446 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005597/1.572, allocations: 43.98 kB / 0.9446 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3548/1.927, allocations: 20.14 MB / 0.9643 GB, free: 132.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/1.927, allocations: 7.141 kB / 0.9643 GB, free: 132.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03258/1.96, allocations: 14.5 MB / 0.9785 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.961, allocations: 445.1 kB / 0.9789 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005628/1.962, allocations: 50.47 kB / 0.9789 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002072/1.964, allocations: 166 kB / 0.9791 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/1.964, allocations: 151.6 kB / 0.9792 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/1.965, allocations: 69.33 kB / 0.9793 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003413/1.968, allocations: 2.632 MB / 0.9819 GB, free: 130.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.8e-07/1.968, allocations: 0 / 0.9819 GB, free: 130.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004819/1.973, allocations: 1.34 MB / 0.9832 GB, free: 130.7 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004738/1.973, allocations: 196.1 kB / 0.9834 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009585/1.983, allocations: 7.859 MB / 0.991 GB, free: 129.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.983, allocations: 0 / 0.991 GB, free: 129.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003703/1.987, allocations: 3.068 MB / 0.994 GB, free: 128.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/1.989, allocations: 491.6 kB / 0.9945 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/2.005, allocations: 9.899 MB / 1.004 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003277/2.008, allocations: 3.59 MB / 1.008 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004715/2.013, allocations: 1.979 MB / 1.01 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008498/2.014, allocations: 262.7 kB / 1.01 GB, free: 123 MB / 0.5417 GB Notification: Performance of SimCode: time 1.082e-06/2.014, allocations: 0 / 1.01 GB, free: 123 MB / 0.5417 GB Notification: Performance of Templates: time 0.08897/2.103, allocations: 63.69 MB / 1.072 GB, free: 86.68 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches