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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.13 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 79.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3263, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01408/0.3404, allocations: 11.77 MB / 0.5421 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00944/0.3499, allocations: 4.059 MB / 0.5461 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.3522, allocations: 59.66 kB / 0.5461 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002882/0.3551, allocations: 1.172 MB / 0.5473 GB, free: 224 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005148/0.3604, allocations: 1.721 MB / 0.549 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.362, allocations: 0.5574 MB / 0.5495 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00584/0.3678, allocations: 4.041 MB / 0.5535 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002401/0.3703, allocations: 1.772 MB / 0.5552 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.372, allocations: 1.152 MB / 0.5563 GB, free: 7.336 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.3743, allocations: 1.674 MB / 0.5579 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004741/0.3748, allocations: 216 kB / 0.5582 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002466/0.3773, allocations: 1.279 MB / 0.5594 GB, free: 4.164 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001648/0.3789, allocations: 1.574 MB / 0.5609 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.381, allocations: 1.824 MB / 0.5627 GB, free: 0.75 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008276/0.3893, allocations: 6.224 MB / 0.5688 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3893, allocations: 4 kB / 0.5688 GB, free: 10.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3894, allocations: 0 / 0.5688 GB, free: 10.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001691/0.3895, allocations: 0 / 0.5688 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.009348/0.3989, allocations: 4.213 MB / 0.5729 GB, free: 6.211 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.399, allocations: 11.97 kB / 0.5729 GB, free: 6.199 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001255/0.4002, allocations: 0.6876 MB / 0.5736 GB, free: 5.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02208/0.4223, allocations: 6.175 MB / 0.5796 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006589/0.4289, allocations: 2.631 MB / 0.5822 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.4292, allocations: 184.5 kB / 0.5824 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.4304, allocations: 311.7 kB / 0.5827 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01959/0.45, allocations: 10.72 MB / 0.5931 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-05/0.4502, allocations: 27.81 kB / 0.5932 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004722/0.4506, allocations: 119.8 kB / 0.5933 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004462/0.4551, allocations: 2.459 MB / 0.5957 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02215/0.4773, allocations: 10.16 MB / 0.6056 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05874/0.5361, allocations: 35.57 MB / 0.6403 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/0.5488, allocations: 5.591 MB / 0.6458 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003517/0.5524, allocations: 2.337 MB / 0.6481 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00199/0.5544, allocations: 1.88 MB / 0.6499 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.5544, allocations: 56.56 kB / 0.65 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 5.32e-06/0.5545, allocations: 0 / 0.65 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.04028/0.5947, allocations: 15.03 MB / 0.6646 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001649/0.5964, allocations: 1.603 MB / 0.6662 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/0.6012, allocations: 2.819 MB / 0.669 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005077/0.6018, allocations: 49.7 kB / 0.669 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002817/0.6046, allocations: 2.791 MB / 0.6717 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001438/0.6061, allocations: 0.8797 MB / 0.6726 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002085/0.6082, allocations: 1.112 MB / 0.6737 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.6083, allocations: 305.1 kB / 0.674 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004562/0.6129, allocations: 2.63 MB / 0.6765 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008309/0.6213, allocations: 5.631 MB / 0.682 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/0.6355, allocations: 8.941 MB / 0.6908 GB, free: 8.25 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001601/0.6357, allocations: 32 kB / 0.6908 GB, free: 8.219 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.07194/0.7076, allocations: 17.14 MB / 0.7075 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.7078, allocations: 58.12 kB / 0.7076 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04808/0.7559, allocations: 10.63 MB / 0.718 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05135/0.8073, allocations: 8.641 MB / 0.7264 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004718/0.812, allocations: 1.298 MB / 0.7277 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2493/1.061, allocations: 17.81 MB / 0.7451 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003741/1.065, allocations: 421.8 kB / 0.7455 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006259/1.066, allocations: 319.3 kB / 0.7458 GB, free: 169.9 MB / 0.5762 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 (653): * Single equations (assignments): 642 * 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.002466/1.068, allocations: 2.018 MB / 0.7477 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004104/1.069, allocations: 284.1 kB / 0.748 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007316/1.076, allocations: 5.117 MB / 0.753 GB, free: 167.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00621/1.082, allocations: 4.406 MB / 0.7573 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.082, allocations: 3.969 kB / 0.7573 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/1.082, allocations: 7.781 kB / 0.7573 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0196/1.102, allocations: 12.91 MB / 0.7699 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-05/1.102, allocations: 8 kB / 0.7699 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.104, allocations: 459.2 kB / 0.7704 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002794/1.107, allocations: 0.9371 MB / 0.7713 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004353/1.107, allocations: 55.88 kB / 0.7714 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005599/1.113, allocations: 5.836 MB / 0.7771 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007886/1.114, allocations: 1.55 MB / 0.7786 GB, free: 145 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/1.128, allocations: 7.761 MB / 0.7861 GB, free: 137.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/1.13, allocations: 338.5 kB / 0.7865 GB, free: 137.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/1.131, allocations: 45.58 kB / 0.7865 GB, free: 137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003084/1.134, allocations: 195.7 kB / 0.7867 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006413/1.135, allocations: 149.5 kB / 0.7868 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002649/1.135, allocations: 59.98 kB / 0.7869 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003577/1.138, allocations: 1.729 MB / 0.7886 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/1.138, allocations: 0 / 0.7886 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008015/1.146, allocations: 1.091 MB / 0.7897 GB, free: 133.8 MB / 0.5762 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.01611/1.163, allocations: 8.394 MB / 0.7978 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01419/1.177, allocations: 6.569 MB / 0.8043 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.177, allocations: 4 kB / 0.8043 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003783/1.181, allocations: 2.535 MB / 0.8067 GB, free: 116.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/1.183, allocations: 384.6 kB / 0.8071 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1751/1.358, allocations: 56.76 MB / 0.8625 GB, free: 54.43 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002828/1.361, allocations: 3.159 MB / 0.8656 GB, free: 51.24 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00367/1.365, allocations: 2.056 MB / 0.8676 GB, free: 49.18 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/1.367, allocations: 1.659 MB / 0.8693 GB, free: 47.52 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/1.367, allocations: 0 / 0.8693 GB, free: 47.52 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/1.501, allocations: 70.8 MB / 0.9384 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.81/22.32, allocations: 7.938 kB / 0.9384 GB, free: 8.895 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > 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