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.001139/0.001144, allocations: 117.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 203.8 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 79.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4597/0.4611, allocations: 62.43 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0147/0.4758, allocations: 11.77 MB / 0.5425 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.4861, allocations: 4.054 MB / 0.5464 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002297/0.4885, allocations: 60.59 kB / 0.5465 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00259/0.4911, allocations: 1.182 MB / 0.5477 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005598/0.4967, allocations: 1.717 MB / 0.5493 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.4986, allocations: 0.5613 MB / 0.5499 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005376/0.504, allocations: 4.03 MB / 0.5538 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.506, allocations: 1.785 MB / 0.5556 GB, free: 8.637 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001414/0.5074, allocations: 1.152 MB / 0.5567 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.5094, allocations: 1.674 MB / 0.5583 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004073/0.5098, allocations: 220 kB / 0.5585 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.5124, allocations: 1.275 MB / 0.5598 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.5138, allocations: 1.574 MB / 0.5613 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00166/0.5155, allocations: 1.824 MB / 0.5631 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00671/0.5222, allocations: 6.181 MB / 0.5691 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.5222, allocations: 4 kB / 0.5691 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.5222, allocations: 0 / 0.5691 GB, free: 10.69 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000132/0.5224, allocations: 0 / 0.5691 GB, free: 10.69 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.007425/0.5298, allocations: 4.065 MB / 0.5731 GB, free: 6.555 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.5298, allocations: 8.922 kB / 0.5731 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02119/0.551, allocations: 6.137 MB / 0.5791 GB, free: 404 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005508/0.5566, allocations: 2.182 MB / 0.5812 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.5568, allocations: 180.8 kB / 0.5814 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.5578, allocations: 311.5 kB / 0.5817 GB, free: 13.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0181/0.5759, allocations: 10.72 MB / 0.5922 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.402e-05/0.576, allocations: 27.8 kB / 0.5922 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003658/0.5764, allocations: 119.8 kB / 0.5923 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003915/0.5803, allocations: 2.463 MB / 0.5947 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/0.5995, allocations: 10.15 MB / 0.6046 GB, free: 5.727 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05318/0.6527, allocations: 35.5 MB / 0.6393 GB, free: 1.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.6645, allocations: 5.602 MB / 0.6448 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002991/0.6675, allocations: 2.337 MB / 0.6471 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001646/0.6691, allocations: 1.876 MB / 0.6489 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.6692, allocations: 56.5 kB / 0.6489 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 4.678e-06/0.6692, allocations: 0 / 0.6489 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03345/0.7027, allocations: 14.95 MB / 0.6635 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001339/0.704, allocations: 1.611 MB / 0.6651 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003832/0.7079, allocations: 2.79 MB / 0.6678 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005803/0.7085, allocations: 53.69 kB / 0.6679 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002299/0.7108, allocations: 2.677 MB / 0.6705 GB, free: 500 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001212/0.712, allocations: 0.8481 MB / 0.6713 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001621/0.7137, allocations: 1.107 MB / 0.6724 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7138, allocations: 305.2 kB / 0.6727 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003492/0.7173, allocations: 2.634 MB / 0.6753 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005693/0.723, allocations: 5.643 MB / 0.6808 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/0.7336, allocations: 8.941 MB / 0.6895 GB, free: 10.03 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.521e-05/0.7337, allocations: 32 kB / 0.6896 GB, free: 10 MB / 0.545 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06342/0.7971, allocations: 17.15 MB / 0.7063 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.7973, allocations: 50.34 kB / 0.7063 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4346/1.232, allocations: 10.63 MB / 0.7167 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04882/1.281, allocations: 8.648 MB / 0.7252 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005127/1.286, allocations: 1.311 MB / 0.7264 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02613/1.312, allocations: 17.81 MB / 0.7438 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004996/1.317, allocations: 423.5 kB / 0.7442 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007155/1.318, allocations: 316 kB / 0.7445 GB, free: 149.3 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.003192/1.321, allocations: 2.02 MB / 0.7465 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004852/1.322, allocations: 271.2 kB / 0.7468 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007298/1.329, allocations: 5.114 MB / 0.7518 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00599/1.335, allocations: 4.401 MB / 0.7561 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/1.335, allocations: 9.875 kB / 0.7561 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/1.335, allocations: 11.95 kB / 0.7561 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/1.352, allocations: 12.91 MB / 0.7687 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.352, allocations: 4 kB / 0.7687 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/1.354, allocations: 463.2 kB / 0.7691 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002675/1.356, allocations: 0.9343 MB / 0.7701 GB, free: 123.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/1.356, allocations: 47.92 kB / 0.7701 GB, free: 123.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/1.362, allocations: 5.839 MB / 0.7758 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008582/1.363, allocations: 1.546 MB / 0.7773 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/1.373, allocations: 7.741 MB / 0.7849 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009677/1.374, allocations: 325.3 kB / 0.7852 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003869/1.375, allocations: 43.98 kB / 0.7852 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.376, allocations: 195.2 kB / 0.7854 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003794/1.377, allocations: 147.4 kB / 0.7856 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/1.377, allocations: 78.16 kB / 0.7856 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002148/1.379, allocations: 1.713 MB / 0.7873 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.379, allocations: 0 / 0.7873 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00443/1.384, allocations: 1.088 MB / 0.7884 GB, free: 104.4 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.0004351/1.384, allocations: 185 kB / 0.7885 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009055/1.393, allocations: 6.601 MB / 0.795 GB, free: 97.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.393, allocations: 0 / 0.795 GB, free: 97.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003079/1.396, allocations: 2.529 MB / 0.7975 GB, free: 95.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/1.398, allocations: 383.8 kB / 0.7978 GB, free: 94.65 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/1.412, allocations: 9.817 MB / 0.8074 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/1.415, allocations: 3.167 MB / 0.8105 GB, free: 81.52 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003907/1.419, allocations: 2.064 MB / 0.8125 GB, free: 79.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006816/1.42, allocations: 207.4 kB / 0.8127 GB, free: 79.25 MB / 0.5606 GB Notification: Performance of SimCode: time 9.41e-07/1.42, allocations: 0 / 0.8127 GB, free: 79.25 MB / 0.5606 GB Notification: Performance of Templates: time 0.06149/1.481, allocations: 43.76 MB / 0.8555 GB, free: 35.57 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