Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 182.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 86.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2809/0.2809, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.629e-05/4.656e-05, allocations: 4 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1489, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.54/0.6889, allocations: 106.6 MB / 0.5769 GB, free: 13.35 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.6892, allocations: 80.67 kB / 0.5769 GB, free: 13.31 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4255/1.115, allocations: 95.28 MB / 0.67 GB, free: 5.793 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.115, allocations: 3.938 kB / 0.67 GB, free: 5.789 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004003/1.115, allocations: 88 kB / 0.6701 GB, free: 5.703 MB / 474.7 MB 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.01981/1.135, allocations: 4.613 MB / 0.6746 GB, free: 1.02 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/1.135, allocations: 8.031 kB / 0.6746 GB, free: 1.012 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05271/1.188, allocations: 6.741 MB / 0.6812 GB, free: 10.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02511/1.213, allocations: 6.309 MB / 0.6873 GB, free: 3.883 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005217/1.214, allocations: 328.6 kB / 0.6876 GB, free: 3.559 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002667/1.216, allocations: 439.8 kB / 0.6881 GB, free: 3.129 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03781/1.254, allocations: 10.98 MB / 0.6988 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003525/1.255, allocations: 71.33 kB / 0.6988 GB, free: 7.051 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002158/1.257, allocations: 207.9 kB / 0.699 GB, free: 6.848 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002708/1.259, allocations: 1.022 MB / 0.7 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3761/1.636, allocations: 9.166 MB / 0.709 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07319/1.709, allocations: 47.66 MB / 0.7555 GB, free: 85.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01742/1.726, allocations: 4.102 MB / 0.7595 GB, free: 84.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/1.73, allocations: 1.791 MB / 0.7613 GB, free: 84.56 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01719/1.747, allocations: 7.507 MB / 0.7686 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/1.747, allocations: 53.75 kB / 0.7687 GB, free: 80.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 7.454e-06/1.747, allocations: 0 / 0.7687 GB, free: 80.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.1484/1.896, allocations: 25.7 MB / 0.7938 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/1.896, allocations: 207.1 kB / 0.794 GB, free: 73.94 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009397/1.905, allocations: 3.773 MB / 0.7977 GB, free: 72.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007351/1.906, allocations: 68.42 kB / 0.7977 GB, free: 72.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003086/1.909, allocations: 3.118 MB / 0.8008 GB, free: 70.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.911, allocations: 0.8759 MB / 0.8016 GB, free: 69.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001006/1.912, allocations: 129.4 kB / 0.8017 GB, free: 69.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000483/1.913, allocations: 0.5731 MB / 0.8023 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008217/1.921, allocations: 3.363 MB / 0.8056 GB, free: 67.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.932, allocations: 6.986 MB / 0.8124 GB, free: 61.53 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/1.942, allocations: 4.747 MB / 0.817 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001609/1.943, allocations: 37.62 kB / 0.8171 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.06336/2.006, allocations: 15.21 MB / 0.8319 GB, free: 48.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/2.006, allocations: 56 kB / 0.832 GB, free: 48.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001991/2.006, allocations: 131.8 kB / 0.8321 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04167/2.048, allocations: 5.923 MB / 0.8379 GB, free: 45.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009269/2.057, allocations: 1.433 MB / 0.8393 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0688/2.126, allocations: 24.98 MB / 0.8637 GB, free: 19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01357/2.14, allocations: 391.3 kB / 0.8641 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002379/2.142, allocations: 380 kB / 0.8644 GB, free: 18.25 MB / 0.4948 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.004111/2.146, allocations: 0.5833 MB / 0.865 GB, free: 17.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002292/2.149, allocations: 402.8 kB / 0.8654 GB, free: 17.26 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07567/2.225, allocations: 10.77 MB / 0.8759 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.506e-05/2.225, allocations: 24 kB / 0.8759 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/2.225, allocations: 12 kB / 0.8759 GB, free: 6.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-05/2.225, allocations: 11.95 kB / 0.8759 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08072/2.305, allocations: 20.14 MB / 0.8956 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.933e-05/2.306, allocations: 4 kB / 0.8956 GB, free: 1.828 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003987/2.31, allocations: 391.9 kB / 0.896 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3886/2.698, allocations: 4.985 MB / 0.9009 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007139/2.699, allocations: 46.3 kB / 0.9009 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04714/2.746, allocations: 20.13 MB / 0.9206 GB, free: 119 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/2.746, allocations: 15.05 kB / 0.9206 GB, free: 119 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05239/2.799, allocations: 14.5 MB / 0.9347 GB, free: 117 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003398/2.802, allocations: 0.958 MB / 0.9357 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009752/2.803, allocations: 47.53 kB / 0.9357 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004161/2.807, allocations: 168.9 kB / 0.9359 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008269/2.808, allocations: 155.9 kB / 0.936 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003291/2.808, allocations: 63.44 kB / 0.9361 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006768/2.815, allocations: 2.652 MB / 0.9387 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.334e-06/2.815, allocations: 0 / 0.9387 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008347/2.824, allocations: 1.336 MB / 0.94 GB, free: 115.5 MB / 0.5105 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.0009733/2.825, allocations: 184.3 kB / 0.9402 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01757/2.842, allocations: 7.869 MB / 0.9478 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/2.842, allocations: 3.906 kB / 0.9478 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007169/2.849, allocations: 3.085 MB / 0.9509 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/2.854, allocations: 491.3 kB / 0.9513 GB, free: 111 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02831/2.882, allocations: 10.43 MB / 0.9615 GB, free: 107 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00802/2.89, allocations: 3.616 MB / 0.965 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002171/2.893, allocations: 310 kB / 0.9653 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.704e-06/2.893, allocations: 0 / 0.9653 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.1926/3.085, allocations: 104.7 MB / 1.068 GB, free: 20.14 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches