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.001673/0.001673, allocations: 116.9 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002162/0.002162, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 75.88 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1186, allocations: 62.44 MB / 481.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01224/0.1309, allocations: 11.76 MB / 493.2 MB, free: 8.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008221/0.1391, allocations: 4.061 MB / 497.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1404, allocations: 59.88 kB / 497.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.1426, allocations: 1.179 MB / 498.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004072/0.1467, allocations: 1.716 MB / 0.4885 GB, free: 1.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.148, allocations: 0.5613 MB / 0.489 GB, free: 1.129 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004729/0.1528, allocations: 4.038 MB / 0.493 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.1547, allocations: 1.775 MB / 0.4947 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.1561, allocations: 1.144 MB / 0.4958 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001697/0.1578, allocations: 1.674 MB / 0.4975 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003497/0.1582, allocations: 216 kB / 0.4977 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.1602, allocations: 1.283 MB / 0.4989 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.1614, allocations: 1.566 MB / 0.5005 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001609/0.1631, allocations: 1.836 MB / 0.5023 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2665/0.4296, allocations: 6.171 MB / 0.5083 GB, free: 19.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4296, allocations: 0.5156 kB / 0.5083 GB, free: 19.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4297, allocations: 0 / 0.5083 GB, free: 19.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.4299, allocations: 0 / 0.5083 GB, free: 19.6 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.01058/0.4405, allocations: 4.064 MB / 0.5123 GB, free: 17.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.4406, allocations: 10.73 kB / 0.5123 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0191/0.4597, allocations: 6.139 MB / 0.5183 GB, free: 17.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006771/0.4665, allocations: 2.185 MB / 0.5204 GB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.4667, allocations: 182.8 kB / 0.5206 GB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.4684, allocations: 311.2 kB / 0.5209 GB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02006/0.4884, allocations: 10.71 MB / 0.5313 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.4886, allocations: 25.12 kB / 0.5313 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004002/0.489, allocations: 115.4 kB / 0.5315 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003425/0.4924, allocations: 2.463 MB / 0.5339 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01743/0.5099, allocations: 10.17 MB / 0.5438 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05586/0.5658, allocations: 35.49 MB / 0.5785 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.577, allocations: 5.595 MB / 0.5839 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00383/0.5809, allocations: 2.326 MB / 0.5862 GB, free: 8.387 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001836/0.5828, allocations: 1.878 MB / 0.588 GB, free: 6.184 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.5828, allocations: 48.56 kB / 0.5881 GB, free: 6.129 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 5.881e-06/0.5828, allocations: 4 kB / 0.5881 GB, free: 6.125 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.0336/0.6164, allocations: 14.96 MB / 0.6027 GB, free: 7.082 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001359/0.6178, allocations: 1.612 MB / 0.6043 GB, free: 5.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004012/0.6219, allocations: 2.791 MB / 0.607 GB, free: 2.516 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004742/0.6224, allocations: 49.7 kB / 0.607 GB, free: 2.461 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001985/0.6243, allocations: 2.677 MB / 0.6096 GB, free: 15.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.6255, allocations: 0.8487 MB / 0.6105 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/0.6272, allocations: 1.112 MB / 0.6116 GB, free: 13.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.6273, allocations: 301.1 kB / 0.6119 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/0.6312, allocations: 2.638 MB / 0.6144 GB, free: 10.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007038/0.6382, allocations: 5.634 MB / 0.6199 GB, free: 3.844 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/0.6496, allocations: 8.943 MB / 0.6287 GB, free: 9.867 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.372e-05/0.6497, allocations: 32 kB / 0.6287 GB, free: 9.836 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05716/0.7069, allocations: 17.15 MB / 0.6454 GB, free: 9.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.977e-05/0.707, allocations: 53.42 kB / 0.6455 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03921/0.7462, allocations: 10.63 MB / 0.6559 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04249/0.7888, allocations: 8.643 MB / 0.6643 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005174/0.794, allocations: 1.31 MB / 0.6656 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0288/0.8228, allocations: 17.81 MB / 0.683 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004897/0.8278, allocations: 429.5 kB / 0.6834 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/0.8289, allocations: 320 kB / 0.6837 GB, free: 1.52 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.003862/0.8328, allocations: 2.021 MB / 0.6857 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005205/0.8333, allocations: 276.4 kB / 0.6859 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008118/0.8414, allocations: 5.115 MB / 0.6909 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006981/0.8484, allocations: 4.404 MB / 0.6952 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.8485, allocations: 0 / 0.6952 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.469e-05/0.8485, allocations: 12 kB / 0.6952 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/0.8714, allocations: 12.93 MB / 0.7079 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.8715, allocations: 8.188 kB / 0.7079 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.8734, allocations: 451.3 kB / 0.7083 GB, free: 8.117 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.8763, allocations: 0.9464 MB / 0.7092 GB, free: 7.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.8765, allocations: 51.97 kB / 0.7093 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006709/0.8832, allocations: 5.828 MB / 0.715 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2771/1.16, allocations: 1.547 MB / 0.7165 GB, free: 197.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/1.175, allocations: 7.74 MB / 0.724 GB, free: 195.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008654/1.176, allocations: 325.8 kB / 0.7243 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008362/1.177, allocations: 40.89 kB / 0.7244 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/1.179, allocations: 194.5 kB / 0.7246 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006153/1.18, allocations: 147.3 kB / 0.7247 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/1.18, allocations: 66.75 kB / 0.7248 GB, free: 195.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002948/1.183, allocations: 1.718 MB / 0.7265 GB, free: 195.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.183, allocations: 4.281 kB / 0.7265 GB, free: 195.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005017/1.188, allocations: 1.088 MB / 0.7275 GB, free: 195 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.000561/1.188, allocations: 183.3 kB / 0.7277 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009763/1.198, allocations: 6.598 MB / 0.7341 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.198, allocations: 3.812 kB / 0.7341 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00306/1.201, allocations: 2.529 MB / 0.7366 GB, free: 191.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/1.203, allocations: 387.5 kB / 0.737 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/1.216, allocations: 9.801 MB / 0.7466 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002699/1.219, allocations: 3.168 MB / 0.7496 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003633/1.223, allocations: 2.059 MB / 0.7517 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006694/1.223, allocations: 214.4 kB / 0.7519 GB, free: 182.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.223, allocations: 0 / 0.7519 GB, free: 182.9 MB / 0.545 GB Notification: Performance of Templates: time 0.05657/1.28, allocations: 41.92 MB / 0.7928 GB, free: 141.3 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 -s cvode -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