Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.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.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 82.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3195/0.3195, allocations: 43.48 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.07e-05, allocations: 4 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4002, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1905/0.5907, allocations: 100.9 MB / 0.5645 GB, free: 14.33 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/0.5911, allocations: 71.97 kB / 0.5645 GB, free: 14.26 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6746/1.266, allocations: 82.23 MB / 0.6449 GB, free: 112.1 MB / 475.1 MB Notification: Performance of FrontEnd: time 1.873e-06/1.266, allocations: 0 / 0.6449 GB, free: 112.1 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002022/1.266, allocations: 66.67 kB / 0.6449 GB, free: 112.1 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.02278/1.289, allocations: 3.857 MB / 0.6487 GB, free: 110.6 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/1.289, allocations: 12.41 kB / 0.6487 GB, free: 110.6 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04262/1.332, allocations: 5.88 MB / 0.6544 GB, free: 110.4 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02247/1.354, allocations: 5.306 MB / 0.6596 GB, free: 109.8 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/1.354, allocations: 125.1 kB / 0.6597 GB, free: 109.8 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00272/1.357, allocations: 211.6 kB / 0.6599 GB, free: 109.8 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01718/1.374, allocations: 6.897 MB / 0.6667 GB, free: 109.8 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02518/1.4, allocations: 9.201 MB / 0.6757 GB, free: 108.4 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/1.4, allocations: 32.44 kB / 0.6757 GB, free: 108.4 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002187/1.402, allocations: 18.03 kB / 0.6757 GB, free: 108.4 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002449/1.405, allocations: 1.159 MB / 0.6768 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0687/1.473, allocations: 35.12 MB / 0.7111 GB, free: 87 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006599/1.48, allocations: 4.082 MB / 0.7151 GB, free: 84.71 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004279/1.484, allocations: 2.268 MB / 0.7173 GB, free: 83.85 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002136/1.486, allocations: 1.878 MB / 0.7192 GB, free: 82.09 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.035e-05/1.487, allocations: 55.09 kB / 0.7192 GB, free: 82.04 MB / 475.1 MB Notification: Performance of pre-optimization done (n=226): time 6.342e-06/1.487, allocations: 0 / 0.7192 GB, free: 82.04 MB / 475.1 MB Notification: Performance of matching and sorting (n=233): time 0.03878/1.525, allocations: 11.78 MB / 0.7307 GB, free: 72.3 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/1.525, allocations: 77.41 kB / 0.7308 GB, free: 72.21 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00474/1.53, allocations: 2.401 MB / 0.7331 GB, free: 70.11 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006229/1.531, allocations: 25.7 kB / 0.7332 GB, free: 70.08 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/1.533, allocations: 2.773 MB / 0.7359 GB, free: 67.54 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/1.534, allocations: 0.8354 MB / 0.7367 GB, free: 66.79 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007506/1.535, allocations: 0 / 0.7367 GB, free: 66.79 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004563/1.536, allocations: 0.5624 MB / 0.7372 GB, free: 66.29 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005753/1.541, allocations: 2.528 MB / 0.7397 GB, free: 64.02 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007725/1.549, allocations: 5.74 MB / 0.7453 GB, free: 57.04 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/1.557, allocations: 3.818 MB / 0.749 GB, free: 53.8 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.713e-05/1.557, allocations: 32 kB / 0.7491 GB, free: 53.77 MB / 475.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.1122/1.669, allocations: 18.44 MB / 0.7671 GB, free: 35.71 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.768e-05/1.67, allocations: 59.95 kB / 0.7671 GB, free: 35.65 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08038/1.75, allocations: 11.89 MB / 0.7788 GB, free: 23.74 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08882/1.839, allocations: 10.31 MB / 0.7888 GB, free: 13.41 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00796/1.847, allocations: 1.337 MB / 0.7901 GB, free: 12.07 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04116/1.888, allocations: 15.09 MB / 0.8049 GB, free: 12.75 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006967/1.895, allocations: 355.5 kB / 0.8052 GB, free: 12.4 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001588/1.897, allocations: 336 kB / 0.8055 GB, free: 12.07 MB / 491.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 685 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001486/1.898, allocations: 396.2 kB / 0.8059 GB, free: 11.68 MB / 491.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008029/1.899, allocations: 272.4 kB / 0.8062 GB, free: 11.41 MB / 491.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/1.915, allocations: 4.958 MB / 0.811 GB, free: 6.414 MB / 491.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02033/1.935, allocations: 4.267 MB / 0.8152 GB, free: 2.125 MB / 491.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-05/1.935, allocations: 0 / 0.8152 GB, free: 2.125 MB / 491.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/1.935, allocations: 11.97 kB / 0.8152 GB, free: 2.113 MB / 491.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05278/1.988, allocations: 11.95 MB / 0.8269 GB, free: 6.023 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.216e-05/1.988, allocations: 12.03 kB / 0.8269 GB, free: 6.012 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004613/1.993, allocations: 407.4 kB / 0.8273 GB, free: 5.613 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007021/2, allocations: 0.9347 MB / 0.8282 GB, free: 4.668 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007923/2.001, allocations: 19.98 kB / 0.8282 GB, free: 4.648 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3807/2.381, allocations: 5.283 MB / 0.8333 GB, free: 129.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001242/2.383, allocations: 1.395 MB / 0.8347 GB, free: 128.2 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02082/2.404, allocations: 8.256 MB / 0.8428 GB, free: 126.9 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009909/2.405, allocations: 332.8 kB / 0.8431 GB, free: 126.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0011/2.406, allocations: 19.75 kB / 0.8431 GB, free: 126.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003425/2.409, allocations: 175.3 kB / 0.8433 GB, free: 126.8 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007366/2.41, allocations: 146.7 kB / 0.8434 GB, free: 126.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002849/2.41, allocations: 70.41 kB / 0.8435 GB, free: 126.8 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.004334/2.415, allocations: 1.579 MB / 0.845 GB, free: 126.6 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.472e-06/2.415, allocations: 0 / 0.845 GB, free: 126.6 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.007658/2.422, allocations: 1.009 MB / 0.846 GB, free: 126.6 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001013/2.423, allocations: 160.1 kB / 0.8462 GB, free: 126.5 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01781/2.441, allocations: 6.337 MB / 0.8523 GB, free: 126.2 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/2.441, allocations: 4.438 kB / 0.8523 GB, free: 126.2 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.006253/2.447, allocations: 2.461 MB / 0.8548 GB, free: 125.9 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/2.45, allocations: 245 kB / 0.855 GB, free: 125.8 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/2.474, allocations: 8.961 MB / 0.8637 GB, free: 124.1 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006896/2.481, allocations: 3.261 MB / 0.8669 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001939/2.483, allocations: 261.4 kB / 0.8672 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of SimCode: time 1.593e-06/2.483, allocations: 0 / 0.8672 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of Templates: time 0.1815/2.665, allocations: 105.9 MB / 0.9706 GB, free: 46.7 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches