Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 171.4 kB / 16.76 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007009/0.0007008, allocations: 81.42 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3384/0.3384, allocations: 43.56 MB / 363.1 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003783, allocations: 19.97 kB / 432.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 58.84 MB / 491.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.5041, allocations: 109.6 MB / 0.587 GB, free: 8.246 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.5043, allocations: 79.95 kB / 0.587 GB, free: 8.168 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5392/1.044, allocations: 125 MB / 0.7091 GB, free: 86.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.044, allocations: 0 / 0.7091 GB, free: 86.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002769/1.044, allocations: 116.8 kB / 0.7093 GB, free: 86.79 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02035/1.064, allocations: 6.572 MB / 0.7157 GB, free: 84.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/1.064, allocations: 9.875 kB / 0.7157 GB, free: 84.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02714/1.091, allocations: 6.668 MB / 0.7222 GB, free: 83.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/1.106, allocations: 6.25 MB / 0.7283 GB, free: 82.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/1.107, allocations: 449.8 kB / 0.7287 GB, free: 82.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002772/1.11, allocations: 0.5883 MB / 0.7293 GB, free: 82.76 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/1.138, allocations: 15.62 MB / 0.7446 GB, free: 77.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002146/1.138, allocations: 75.22 kB / 0.7446 GB, free: 77.13 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009568/1.139, allocations: 281.2 kB / 0.7449 GB, free: 76.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001737/1.141, allocations: 1.62 MB / 0.7465 GB, free: 76.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/1.165, allocations: 13.84 MB / 0.76 GB, free: 72.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07146/1.237, allocations: 64.01 MB / 0.8225 GB, free: 21.19 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.249, allocations: 6.374 MB / 0.8287 GB, free: 14.59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004234/1.253, allocations: 3.571 MB / 0.8322 GB, free: 11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.273, allocations: 14.35 MB / 0.8462 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.759e-05/1.273, allocations: 72.5 kB / 0.8463 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 7.835e-06/1.273, allocations: 0 / 0.8463 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=339): time 0.3997/1.672, allocations: 41.54 MB / 0.8869 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/1.673, allocations: 211.6 kB / 0.8871 GB, free: 95.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008924/1.681, allocations: 5.446 MB / 0.8924 GB, free: 94.79 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008476/1.682, allocations: 70.73 kB / 0.8925 GB, free: 94.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00316/1.686, allocations: 4.432 MB / 0.8968 GB, free: 92.45 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.687, allocations: 1.257 MB / 0.898 GB, free: 91.71 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005632/1.688, allocations: 175.8 kB / 0.8982 GB, free: 91.71 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004797/1.688, allocations: 0.6835 MB / 0.8988 GB, free: 91.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007078/1.696, allocations: 4.564 MB / 0.9033 GB, free: 91.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009796/1.705, allocations: 9.554 MB / 0.9126 GB, free: 83.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01504/1.72, allocations: 15.19 MB / 0.9275 GB, free: 72.93 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002081/1.721, allocations: 51.81 kB / 0.9275 GB, free: 72.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.03961/1.76, allocations: 18.73 MB / 0.9458 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/1.761, allocations: 85.41 kB / 0.9459 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002266/1.761, allocations: 175.7 kB / 0.9461 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0187/1.779, allocations: 5.61 MB / 0.9515 GB, free: 65.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007205/1.787, allocations: 2.061 MB / 0.9535 GB, free: 65.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02513/1.812, allocations: 23.66 MB / 0.9767 GB, free: 53.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008304/1.82, allocations: 0.5353 MB / 0.9772 GB, free: 53.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/1.822, allocations: 0.5103 MB / 0.9777 GB, free: 52.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1053 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006376/1.828, allocations: 3.093 MB / 0.9807 GB, free: 50.21 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.83, allocations: 0.4974 MB / 0.9812 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02556/1.855, allocations: 12.44 MB / 0.9933 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.565e-05/1.855, allocations: 52 kB / 0.9934 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.982e-05/1.855, allocations: 8 kB / 0.9934 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.11e-05/1.855, allocations: 19.94 kB / 0.9934 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04489/1.9, allocations: 24.07 MB / 1.017 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.401e-05/1.9, allocations: 4.594 kB / 1.017 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/1.903, allocations: 0.5733 MB / 1.017 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01573/1.919, allocations: 4.642 MB / 1.022 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007503/1.92, allocations: 62.72 kB / 1.022 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.941, allocations: 18.95 MB / 1.041 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/1.942, allocations: 7.938 kB / 1.041 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2917/2.233, allocations: 16.76 MB / 1.057 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003714/2.237, allocations: 1.225 MB / 1.058 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001463/2.239, allocations: 54.52 kB / 1.058 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/2.242, allocations: 247.5 kB / 1.058 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007408/2.243, allocations: 196.6 kB / 1.059 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002696/2.243, allocations: 87.89 kB / 1.059 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00595/2.249, allocations: 3.37 MB / 1.062 GB, free: 100 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.81e-07/2.249, allocations: 0 / 1.062 GB, free: 100 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009175/2.258, allocations: 1.71 MB / 1.064 GB, free: 100 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008658/2.259, allocations: 223 kB / 1.064 GB, free: 99.92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01525/2.274, allocations: 10.52 MB / 1.074 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.274, allocations: 0 / 1.074 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005909/2.28, allocations: 3.982 MB / 1.078 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01031/2.291, allocations: 0.6177 MB / 1.079 GB, free: 99.53 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03564/2.326, allocations: 18.44 MB / 1.097 GB, free: 91.61 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009487/2.336, allocations: 4.629 MB / 1.101 GB, free: 90.03 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009851/2.346, allocations: 3.004 MB / 1.104 GB, free: 89.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/2.348, allocations: 346.3 kB / 1.104 GB, free: 89.97 MB / 0.5105 GB Notification: Performance of SimCode: time 2.304e-06/2.348, allocations: 2.812 kB / 1.104 GB, free: 89.97 MB / 0.5105 GB Notification: Performance of Templates: time 0.1113/2.459, allocations: 73.83 MB / 1.177 GB, free: 56.56 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches