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.001271/0.001271, allocations: 114.5 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.6 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.2099/0.2099, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001677, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3143, allocations: 62.44 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0122/0.3265, allocations: 11.75 MB / 0.5431 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008171/0.3347, allocations: 4.066 MB / 0.5471 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.3367, allocations: 60.69 kB / 0.5472 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002549/0.3393, allocations: 1.174 MB / 0.5483 GB, free: 420 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004112/0.3434, allocations: 1.725 MB / 0.55 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.3448, allocations: 0.5574 MB / 0.5505 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004798/0.3496, allocations: 4.033 MB / 0.5545 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002422/0.352, allocations: 1.783 MB / 0.5562 GB, free: 8.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.3538, allocations: 1.16 MB / 0.5574 GB, free: 7.281 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.356, allocations: 1.666 MB / 0.559 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006412/0.3567, allocations: 220 kB / 0.5592 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002494/0.3592, allocations: 1.279 MB / 0.5604 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001559/0.3608, allocations: 1.574 MB / 0.562 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002532/0.3633, allocations: 1.828 MB / 0.5638 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00631/0.3696, allocations: 6.171 MB / 0.5698 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3696, allocations: 4 kB / 0.5698 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3697, allocations: 0 / 0.5698 GB, free: 10.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000122/0.3698, allocations: 0 / 0.5698 GB, free: 10.5 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.0067/0.3765, allocations: 4.069 MB / 0.5738 GB, free: 6.363 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3765, allocations: 8.922 kB / 0.5738 GB, free: 6.355 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01876/0.3953, allocations: 6.137 MB / 0.5798 GB, free: 208 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005291/0.4006, allocations: 2.178 MB / 0.5819 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.4009, allocations: 180.8 kB / 0.5821 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001637/0.4026, allocations: 315.5 kB / 0.5824 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.4203, allocations: 10.71 MB / 0.5928 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.057e-05/0.4204, allocations: 27.75 kB / 0.5929 GB, free: 2.293 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005852/0.421, allocations: 115.8 kB / 0.593 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003593/0.4246, allocations: 2.467 MB / 0.5954 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01786/0.4425, allocations: 10.16 MB / 0.6053 GB, free: 5.539 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04726/0.4898, allocations: 35.5 MB / 0.64 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01094/0.5007, allocations: 5.598 MB / 0.6454 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003106/0.5039, allocations: 2.335 MB / 0.6477 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/0.5055, allocations: 1.876 MB / 0.6496 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.5055, allocations: 60.44 kB / 0.6496 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 5.049e-06/0.5056, allocations: 0 / 0.6496 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=225): time 0.03282/0.5384, allocations: 14.56 MB / 0.6638 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.5384, allocations: 69.41 kB / 0.6639 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/0.5424, allocations: 2.782 MB / 0.6666 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002227/0.5426, allocations: 57.64 kB / 0.6667 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001772/0.5444, allocations: 2.677 MB / 0.6693 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000768/0.5452, allocations: 0.8327 MB / 0.6701 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/0.5468, allocations: 1.088 MB / 0.6712 GB, free: 464 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.865e-05/0.5469, allocations: 305.1 kB / 0.6714 GB, free: 156 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003584/0.5505, allocations: 2.533 MB / 0.6739 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005298/0.5558, allocations: 5.537 MB / 0.6793 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009437/0.5652, allocations: 8.777 MB / 0.6879 GB, free: 12.35 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.554e-05/0.5653, allocations: 28 kB / 0.6879 GB, free: 12.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05856/0.6239, allocations: 16.93 MB / 0.7045 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.624, allocations: 51.98 kB / 0.7045 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04186/0.6659, allocations: 10.42 MB / 0.7147 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2948/0.9607, allocations: 8.637 MB / 0.7231 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/0.9649, allocations: 1.301 MB / 0.7244 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02397/0.9889, allocations: 17.82 MB / 0.7418 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/0.9924, allocations: 362.4 kB / 0.7421 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003685/0.9928, allocations: 313.3 kB / 0.7424 GB, free: 152.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 (656): * Single equations (assignments): 647 * Array equations: 6 * 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.002262/0.995, allocations: 2.017 MB / 0.7444 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.9954, allocations: 273.7 kB / 0.7447 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006494/1.002, allocations: 4.818 MB / 0.7494 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/1.002, allocations: 7.969 kB / 0.7494 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.002, allocations: 0 / 0.7494 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/1.002, allocations: 297.9 kB / 0.7497 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003146/1.003, allocations: 40.17 kB / 0.7497 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/1.004, allocations: 173.7 kB / 0.7499 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/1.004, allocations: 109.8 kB / 0.75 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005899/1.01, allocations: 4.379 MB / 0.7542 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005594/1.015, allocations: 6.27 MB / 0.7604 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001506/1.017, allocations: 1.776 MB / 0.7621 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001688/1.019, allocations: 1.704 MB / 0.7638 GB, free: 131 MB / 0.5606 GB Notification: Performance of Backend: time 4.71e-07/1.019, allocations: 0 / 0.7638 GB, free: 131 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007829/1.026, allocations: 4.967 MB / 0.7686 GB, free: 126.1 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01074/1.037, allocations: 8.37 MB / 0.7768 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.07067/1.108, allocations: 56.37 MB / 0.8318 GB, free: 61.58 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/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