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.001406/0.001406, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2326/0.2326, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 75.88 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4244/0.4257, allocations: 62.44 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0134/0.4392, allocations: 11.76 MB / 0.5425 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.4496, allocations: 4.057 MB / 0.5464 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002432/0.452, allocations: 59.38 kB / 0.5465 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00272/0.4548, allocations: 1.178 MB / 0.5477 GB, free: 476 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00514/0.46, allocations: 1.759 MB / 0.5494 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.4616, allocations: 0.5613 MB / 0.5499 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00586/0.4675, allocations: 4.039 MB / 0.5539 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003303/0.4708, allocations: 1.775 MB / 0.5556 GB, free: 8.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/0.4737, allocations: 1.16 MB / 0.5567 GB, free: 7.332 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002905/0.4766, allocations: 1.67 MB / 0.5584 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005521/0.4772, allocations: 216 kB / 0.5586 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002621/0.4798, allocations: 1.283 MB / 0.5598 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001621/0.4815, allocations: 1.574 MB / 0.5614 GB, free: 2.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.4833, allocations: 1.82 MB / 0.5631 GB, free: 0.75 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007436/0.4907, allocations: 6.187 MB / 0.5692 GB, free: 10.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4908, allocations: 3.938 kB / 0.5692 GB, free: 10.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4908, allocations: 0 / 0.5692 GB, free: 10.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001336/0.4909, allocations: 0 / 0.5692 GB, free: 10.54 MB / 430.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.007296/0.4982, allocations: 4.061 MB / 0.5731 GB, free: 6.41 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4983, allocations: 8.031 kB / 0.5732 GB, free: 6.402 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0191/0.5174, allocations: 6.137 MB / 0.5791 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005825/0.5232, allocations: 2.181 MB / 0.5813 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.5234, allocations: 188.8 kB / 0.5815 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.5246, allocations: 311.5 kB / 0.5818 GB, free: 13.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.5426, allocations: 10.71 MB / 0.5922 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.956e-05/0.5427, allocations: 27.8 kB / 0.5922 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003544/0.5431, allocations: 111.8 kB / 0.5923 GB, free: 2.223 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003813/0.5469, allocations: 2.467 MB / 0.5948 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/0.5669, allocations: 10.16 MB / 0.6047 GB, free: 5.578 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05058/0.6176, allocations: 35.5 MB / 0.6393 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.6287, allocations: 5.602 MB / 0.6448 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003098/0.6318, allocations: 2.334 MB / 0.6471 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001685/0.6335, allocations: 1.876 MB / 0.6489 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.864e-05/0.6336, allocations: 56.44 kB / 0.649 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 4.428e-06/0.6336, allocations: 0 / 0.649 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03597/0.6696, allocations: 14.95 MB / 0.6636 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001564/0.6712, allocations: 1.615 MB / 0.6652 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004449/0.6757, allocations: 2.79 MB / 0.6679 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004868/0.6762, allocations: 53.7 kB / 0.6679 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.6782, allocations: 2.681 MB / 0.6706 GB, free: 348 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.6792, allocations: 0.848 MB / 0.6714 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001526/0.6807, allocations: 1.111 MB / 0.6725 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.6809, allocations: 301.1 kB / 0.6728 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/0.6845, allocations: 2.63 MB / 0.6753 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00561/0.6902, allocations: 5.643 MB / 0.6808 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/0.7017, allocations: 8.945 MB / 0.6896 GB, free: 9.887 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-05/0.7018, allocations: 32 kB / 0.6896 GB, free: 9.855 MB / 0.545 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06177/0.7636, allocations: 17.15 MB / 0.7063 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.13e-05/0.7638, allocations: 48 kB / 0.7064 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4734/1.237, allocations: 10.62 MB / 0.7168 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04613/1.283, allocations: 8.642 MB / 0.7252 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/1.288, allocations: 1.313 MB / 0.7265 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0251/1.313, allocations: 17.81 MB / 0.7439 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.318, allocations: 423.3 kB / 0.7443 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/1.319, allocations: 324 kB / 0.7446 GB, free: 149.1 MB / 0.5606 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.003335/1.323, allocations: 2.024 MB / 0.7466 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/1.323, allocations: 268.1 kB / 0.7468 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007207/1.33, allocations: 5.112 MB / 0.7518 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005864/1.336, allocations: 4.412 MB / 0.7561 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/1.336, allocations: 4.656 kB / 0.7561 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/1.336, allocations: 7.969 kB / 0.7561 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01676/1.353, allocations: 12.9 MB / 0.7687 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/1.353, allocations: 10.19 kB / 0.7687 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/1.355, allocations: 465.2 kB / 0.7692 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002626/1.358, allocations: 0.9342 MB / 0.7701 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000388/1.358, allocations: 55.91 kB / 0.7702 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005621/1.364, allocations: 5.831 MB / 0.7758 GB, free: 117 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007326/1.364, allocations: 1.548 MB / 0.7774 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009339/1.374, allocations: 7.734 MB / 0.7849 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009026/1.375, allocations: 328.8 kB / 0.7852 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003607/1.375, allocations: 43.98 kB / 0.7853 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/1.376, allocations: 195.4 kB / 0.7855 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/1.377, allocations: 148.9 kB / 0.7856 GB, free: 107 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/1.377, allocations: 63.98 kB / 0.7857 GB, free: 107 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002096/1.379, allocations: 1.724 MB / 0.7873 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/1.379, allocations: 0 / 0.7873 GB, free: 105.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004525/1.384, allocations: 1.092 MB / 0.7884 GB, free: 104.1 MB / 0.5606 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.0004238/1.384, allocations: 180 kB / 0.7886 GB, free: 104 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008829/1.393, allocations: 6.6 MB / 0.795 GB, free: 97.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/1.393, allocations: 0.8125 kB / 0.795 GB, free: 97.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002931/1.396, allocations: 2.534 MB / 0.7975 GB, free: 94.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/1.398, allocations: 386.6 kB / 0.7979 GB, free: 94.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/1.41, allocations: 9.817 MB / 0.8075 GB, free: 84.47 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/1.413, allocations: 3.161 MB / 0.8105 GB, free: 81.28 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003486/1.416, allocations: 2.064 MB / 0.8126 GB, free: 79.21 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/1.417, allocations: 211.4 kB / 0.8128 GB, free: 79 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/1.417, allocations: 0 / 0.8128 GB, free: 79 MB / 0.5606 GB Notification: Performance of Templates: time 0.06106/1.478, allocations: 43.76 MB / 0.8555 GB, free: 35.32 MB / 0.5606 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches