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.001002/0.001002, allocations: 95.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001094, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.7 MB / 247.5 MB, free: 9.469 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1954/0.1954, allocations: 46.19 MB / 345.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002889, allocations: 11.94 kB / 420.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1167, allocations: 63.56 MB / 483.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02356/0.1403, allocations: 24.7 MB / 0.4965 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.1543, allocations: 6.287 MB / 0.5027 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004445/0.1588, allocations: 103.8 kB / 0.5028 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.16, allocations: 418.2 kB / 0.5031 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.1644, allocations: 1.628 MB / 0.5047 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.1659, allocations: 0.5186 MB / 0.5052 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2459/0.4118, allocations: 5.465 MB / 0.5106 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004442/0.4163, allocations: 2.262 MB / 0.5128 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.4187, allocations: 0.9274 MB / 0.5137 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.4223, allocations: 1.688 MB / 0.5153 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007787/0.4231, allocations: 124.2 kB / 0.5155 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003162/0.4262, allocations: 1.284 MB / 0.5167 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002215/0.4285, allocations: 1.504 MB / 0.5182 GB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001932/0.4304, allocations: 1.754 MB / 0.5199 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005684/0.4361, allocations: 4.656 MB / 0.5244 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4361, allocations: 1.531 kB / 0.5244 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4362, allocations: 0 / 0.5244 GB, free: 9.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001628/0.4363, allocations: 0 / 0.5244 GB, free: 9.57 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.00809/0.4444, allocations: 3.35 MB / 0.5277 GB, free: 7.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4445, allocations: 11.19 kB / 0.5277 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01969/0.4642, allocations: 6.245 MB / 0.5338 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005423/0.4696, allocations: 2.161 MB / 0.5359 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.4698, allocations: 181.9 kB / 0.5361 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/0.471, allocations: 310 kB / 0.5364 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/0.4904, allocations: 10.74 MB / 0.5469 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/0.4906, allocations: 28.38 kB / 0.5469 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001026/0.4916, allocations: 108.8 kB / 0.547 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004207/0.4959, allocations: 2.464 MB / 0.5494 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02182/0.5177, allocations: 10.18 MB / 0.5594 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0577/0.5755, allocations: 35.67 MB / 0.5942 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01241/0.5879, allocations: 5.597 MB / 0.5997 GB, free: 5.348 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003973/0.5919, allocations: 2.334 MB / 0.602 GB, free: 3.012 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001799/0.5938, allocations: 1.882 MB / 0.6038 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.5938, allocations: 52.56 kB / 0.6038 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 6.492e-06/0.5938, allocations: 0 / 0.6038 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03735/0.6312, allocations: 14.95 MB / 0.6184 GB, free: 1.703 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001332/0.6326, allocations: 1.527 MB / 0.6199 GB, free: 28 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005172/0.6378, allocations: 2.79 MB / 0.6227 GB, free: 13.22 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005126/0.6383, allocations: 53.7 kB / 0.6227 GB, free: 13.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00246/0.6408, allocations: 2.677 MB / 0.6253 GB, free: 10.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001421/0.6422, allocations: 0.8469 MB / 0.6261 GB, free: 9.645 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/0.6435, allocations: 488.8 kB / 0.6266 GB, free: 9.16 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.6436, allocations: 305.2 kB / 0.6269 GB, free: 8.859 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00446/0.648, allocations: 2.634 MB / 0.6295 GB, free: 6.219 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006761/0.6548, allocations: 5.642 MB / 0.635 GB, free: 15.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/0.6665, allocations: 8.94 MB / 0.6437 GB, free: 5.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/0.6666, allocations: 32 kB / 0.6437 GB, free: 5.129 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.08882/0.7555, allocations: 17.14 MB / 0.6605 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/0.7556, allocations: 53 kB / 0.6605 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04617/0.8018, allocations: 10.63 MB / 0.6709 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0496/0.8515, allocations: 8.646 MB / 0.6794 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005127/0.8566, allocations: 1.318 MB / 0.6807 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02847/0.8851, allocations: 15.64 MB / 0.6959 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/0.89, allocations: 426.4 kB / 0.6963 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/0.8912, allocations: 320 kB / 0.6966 GB, free: 14.63 MB / 0.545 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.0051/0.8963, allocations: 2.03 MB / 0.6986 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006909/0.897, allocations: 268.4 kB / 0.6989 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.9072, allocations: 5.119 MB / 0.7039 GB, free: 7.176 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007954/0.9152, allocations: 4.4 MB / 0.7082 GB, free: 2.758 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.9152, allocations: 4 kB / 0.7082 GB, free: 2.754 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/0.9153, allocations: 7.969 kB / 0.7082 GB, free: 2.746 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2528/1.168, allocations: 12.94 MB / 0.7208 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.168, allocations: 15.31 kB / 0.7208 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002182/1.17, allocations: 453.2 kB / 0.7213 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003091/1.173, allocations: 0.9424 MB / 0.7222 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003271/1.174, allocations: 49.91 kB / 0.7222 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006345/1.18, allocations: 5.459 MB / 0.7276 GB, free: 190.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008156/1.181, allocations: 1.464 MB / 0.729 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.191, allocations: 7.727 MB / 0.7365 GB, free: 186 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008326/1.192, allocations: 327.3 kB / 0.7368 GB, free: 185.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005462/1.193, allocations: 43.58 kB / 0.7369 GB, free: 185.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/1.195, allocations: 198 kB / 0.7371 GB, free: 185.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004014/1.195, allocations: 145.1 kB / 0.7372 GB, free: 185.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/1.195, allocations: 69.75 kB / 0.7373 GB, free: 185.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002393/1.198, allocations: 1.714 MB / 0.739 GB, free: 185.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.052e-06/1.198, allocations: 0 / 0.739 GB, free: 185.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004573/1.202, allocations: 1.096 MB / 0.74 GB, free: 185.1 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.0005275/1.203, allocations: 184.1 kB / 0.7402 GB, free: 185 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009958/1.213, allocations: 6.553 MB / 0.7466 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.213, allocations: 0 / 0.7466 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00322/1.216, allocations: 2.536 MB / 0.7491 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004946/1.221, allocations: 353.5 kB / 0.7494 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01749/1.238, allocations: 12.4 MB / 0.7615 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002953/1.241, allocations: 3.163 MB / 0.7646 GB, free: 165 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/1.243, allocations: 262.8 kB / 0.7649 GB, free: 164.7 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/1.243, allocations: 3.938 kB / 0.7649 GB, free: 164.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1077/1.35, allocations: 111.2 MB / 0.8734 GB, free: 53.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