Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.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.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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 105.8 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 215.9 kB / 19.25 MB, free: 3.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.11 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 75.03 kB / 418.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.118, allocations: 62.44 MB / 480.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01323/0.1313, allocations: 11.75 MB / 492.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009189/0.1405, allocations: 4.061 MB / 496.5 MB, free: 5.402 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.1425, allocations: 59.88 kB / 496.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.1453, allocations: 1.175 MB / 497.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.1498, allocations: 1.732 MB / 499.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1512, allocations: 0.5535 MB / 0.4883 GB, free: 1.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005212/0.1565, allocations: 4.032 MB / 0.4922 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002836/0.1593, allocations: 1.768 MB / 0.494 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002324/0.1617, allocations: 1.156 MB / 0.4951 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002701/0.1644, allocations: 1.67 MB / 0.4967 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009014/0.1653, allocations: 216 kB / 0.4969 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.1682, allocations: 1.283 MB / 0.4982 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002028/0.1703, allocations: 1.566 MB / 0.4997 GB, free: 6.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002871/0.1732, allocations: 1.832 MB / 0.5015 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2315/0.4047, allocations: 5.894 MB / 0.5073 GB, free: 18.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.4048, allocations: 1.531 kB / 0.5073 GB, free: 18.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4048, allocations: 0 / 0.5073 GB, free: 18.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002449/0.4051, allocations: 0 / 0.5073 GB, free: 18.73 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.009899/0.415, allocations: 4.068 MB / 0.5112 GB, free: 17.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.4151, allocations: 10.44 kB / 0.5112 GB, free: 17.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02169/0.4368, allocations: 6.134 MB / 0.5172 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006026/0.4428, allocations: 2.161 MB / 0.5193 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.4431, allocations: 179 kB / 0.5195 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001762/0.4449, allocations: 313.6 kB / 0.5198 GB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/0.4629, allocations: 10.72 MB / 0.5303 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.081e-05/0.463, allocations: 25.25 kB / 0.5303 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004519/0.4635, allocations: 112.3 kB / 0.5304 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003513/0.467, allocations: 2.46 MB / 0.5328 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01692/0.4839, allocations: 10.16 MB / 0.5427 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04974/0.5337, allocations: 35.69 MB / 0.5776 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.5457, allocations: 5.597 MB / 0.5831 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003394/0.5491, allocations: 2.334 MB / 0.5853 GB, free: 8.223 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001736/0.5509, allocations: 1.879 MB / 0.5872 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.5509, allocations: 49.23 kB / 0.5872 GB, free: 5.961 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 4.538e-06/0.5509, allocations: 0 / 0.5872 GB, free: 5.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.03914/0.5901, allocations: 14.96 MB / 0.6018 GB, free: 6.922 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001499/0.5916, allocations: 1.614 MB / 0.6034 GB, free: 5.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004218/0.5959, allocations: 2.789 MB / 0.6061 GB, free: 2.359 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005682/0.5965, allocations: 56.59 kB / 0.6062 GB, free: 2.301 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002068/0.5985, allocations: 2.669 MB / 0.6088 GB, free: 15.64 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.5998, allocations: 0.8465 MB / 0.6096 GB, free: 14.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002639/0.6024, allocations: 1.114 MB / 0.6107 GB, free: 13.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.6025, allocations: 302.5 kB / 0.611 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004189/0.6067, allocations: 2.63 MB / 0.6136 GB, free: 10.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006349/0.6131, allocations: 5.639 MB / 0.6191 GB, free: 3.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/0.6246, allocations: 8.942 MB / 0.6278 GB, free: 9.699 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.6247, allocations: 32 kB / 0.6278 GB, free: 9.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06723/0.692, allocations: 17.15 MB / 0.6446 GB, free: 8.844 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.6921, allocations: 56.03 kB / 0.6446 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04685/0.739, allocations: 10.63 MB / 0.655 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05014/0.7892, allocations: 8.658 MB / 0.6635 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004675/0.7939, allocations: 1.31 MB / 0.6648 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03139/0.8253, allocations: 17.82 MB / 0.6822 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005002/0.8303, allocations: 419.8 kB / 0.6826 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/0.8318, allocations: 320 kB / 0.6829 GB, free: 1.332 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 650 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.004643/0.8365, allocations: 2.022 MB / 0.6848 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008273/0.8373, allocations: 276.4 kB / 0.6851 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.8475, allocations: 5.116 MB / 0.6901 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008383/0.8559, allocations: 4.407 MB / 0.6944 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/0.856, allocations: 0 / 0.6944 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.107e-05/0.856, allocations: 15.89 kB / 0.6944 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02452/0.8806, allocations: 12.94 MB / 0.707 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.483e-05/0.8807, allocations: 8 kB / 0.7071 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002244/0.8829, allocations: 459.2 kB / 0.7075 GB, free: 7.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003164/0.8861, allocations: 0.9392 MB / 0.7084 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004282/0.8865, allocations: 43.98 kB / 0.7085 GB, free: 6.906 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007185/0.8937, allocations: 5.846 MB / 0.7142 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2142/1.108, allocations: 1.541 MB / 0.7157 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/1.122, allocations: 7.732 MB / 0.7232 GB, free: 195.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009182/1.123, allocations: 331.2 kB / 0.7235 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004792/1.123, allocations: 41.73 kB / 0.7236 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/1.125, allocations: 200 kB / 0.7238 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004286/1.125, allocations: 141.9 kB / 0.7239 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/1.125, allocations: 73.67 kB / 0.724 GB, free: 195.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002844/1.128, allocations: 1.72 MB / 0.7257 GB, free: 194.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.128, allocations: 0 / 0.7257 GB, free: 194.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005333/1.134, allocations: 1.088 MB / 0.7267 GB, free: 194.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006487/1.134, allocations: 185.4 kB / 0.7269 GB, free: 194.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01522/1.15, allocations: 9.625 MB / 0.7363 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/1.15, allocations: 0 / 0.7363 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.153, allocations: 2.527 MB / 0.7388 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/1.156, allocations: 375.7 kB / 0.7391 GB, free: 191 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/1.171, allocations: 10.36 MB / 0.7492 GB, free: 183.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003139/1.174, allocations: 3.163 MB / 0.7523 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/1.175, allocations: 259 kB / 0.7526 GB, free: 180.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.193e-06/1.175, allocations: 0 / 0.7526 GB, free: 180.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1056/1.281, allocations: 111.9 MB / 0.8619 GB, free: 69.82 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches