Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 199.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007263/0.0007263, allocations: 99.08 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2896/0.2896, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002382, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2794, allocations: 62.95 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01584/0.2953, allocations: 23.18 MB / 0.5386 GB, free: 20.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.3065, allocations: 5.977 MB / 0.5444 GB, free: 16.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003651/0.3102, allocations: 106.4 kB / 0.5445 GB, free: 16.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.3129, allocations: 1.092 MB / 0.5456 GB, free: 16.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009066/0.322, allocations: 3.524 MB / 0.549 GB, free: 14.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.3239, allocations: 0.5004 MB / 0.5495 GB, free: 14.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005997/0.3299, allocations: 4.338 MB / 0.5538 GB, free: 13.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004822/0.3348, allocations: 2.203 MB / 0.5559 GB, free: 12.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.3371, allocations: 1.011 MB / 0.5569 GB, free: 12.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002718/0.3398, allocations: 1.663 MB / 0.5585 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007848/0.3406, allocations: 124.2 kB / 0.5586 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00281/0.3434, allocations: 1.27 MB / 0.5599 GB, free: 10.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001966/0.3454, allocations: 1.475 MB / 0.5613 GB, free: 9.969 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002859/0.3483, allocations: 1.673 MB / 0.563 GB, free: 8.715 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004814/0.3531, allocations: 4.722 MB / 0.5676 GB, free: 4.426 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3531, allocations: 3.938 kB / 0.5676 GB, free: 4.422 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3532, allocations: 4 kB / 0.5676 GB, free: 4.418 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002/0.3534, allocations: 0 / 0.5676 GB, free: 4.418 MB / 378.7 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.006053/0.3594, allocations: 3.405 MB / 0.5709 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3595, allocations: 12.03 kB / 0.5709 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001333/0.3608, allocations: 0.6837 MB / 0.5716 GB, free: 244 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01988/0.3807, allocations: 6.262 MB / 0.5777 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005612/0.3864, allocations: 2.603 MB / 0.5802 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.3866, allocations: 188.5 kB / 0.5804 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001249/0.3879, allocations: 311.6 kB / 0.5807 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01862/0.4065, allocations: 10.72 MB / 0.5912 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001498/0.4067, allocations: 23.81 kB / 0.5912 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008675/0.4076, allocations: 111.8 kB / 0.5913 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003961/0.4115, allocations: 2.467 MB / 0.5937 GB, free: 9.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/0.4309, allocations: 10.14 MB / 0.6036 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05246/0.4834, allocations: 35.69 MB / 0.6385 GB, free: 10.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/0.4946, allocations: 5.586 MB / 0.6439 GB, free: 4.523 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.4978, allocations: 2.327 MB / 0.6462 GB, free: 2.195 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001631/0.4994, allocations: 1.884 MB / 0.648 GB, free: 15.97 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.4995, allocations: 48.56 kB / 0.6481 GB, free: 15.92 MB / 474.7 MB Notification: Performance of pre-optimization done (n=224): time 5.23e-06/0.4995, allocations: 0 / 0.6481 GB, free: 15.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=231): time 0.03474/0.5342, allocations: 14.94 MB / 0.6627 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001282/0.5355, allocations: 1.516 MB / 0.6641 GB, free: 15.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004108/0.5397, allocations: 2.799 MB / 0.6669 GB, free: 12.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/0.5402, allocations: 49.7 kB / 0.6669 GB, free: 12.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.542, allocations: 2.681 MB / 0.6695 GB, free: 9.605 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/0.543, allocations: 0.8481 MB / 0.6704 GB, free: 8.746 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000486/0.5435, allocations: 112 kB / 0.6705 GB, free: 8.637 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004028/0.5439, allocations: 0.5337 MB / 0.671 GB, free: 8.098 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004157/0.5481, allocations: 2.611 MB / 0.6736 GB, free: 5.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2318/0.7799, allocations: 5.606 MB / 0.679 GB, free: 124.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/0.7901, allocations: 8.92 MB / 0.6877 GB, free: 118.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001363/0.7903, allocations: 33.66 kB / 0.6878 GB, free: 118.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06185/0.8522, allocations: 17.08 MB / 0.7044 GB, free: 115.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.8524, allocations: 50.47 kB / 0.7045 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04291/0.8953, allocations: 10.62 MB / 0.7149 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0435/0.9389, allocations: 8.649 MB / 0.7233 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/0.9434, allocations: 1.295 MB / 0.7246 GB, free: 108.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02333/0.9668, allocations: 15.61 MB / 0.7398 GB, free: 92.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/0.9712, allocations: 423.5 kB / 0.7402 GB, free: 92.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001038/0.9722, allocations: 323.7 kB / 0.7405 GB, free: 91.84 MB / 490.7 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003891/0.9761, allocations: 2.018 MB / 0.7425 GB, free: 89.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000641/0.9768, allocations: 277 kB / 0.7428 GB, free: 89.74 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007901/0.9847, allocations: 5.106 MB / 0.7478 GB, free: 84.61 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006291/0.991, allocations: 4.386 MB / 0.752 GB, free: 80.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.9911, allocations: 4 kB / 0.752 GB, free: 80.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/0.9911, allocations: 7.969 kB / 0.752 GB, free: 80.19 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01872/1.01, allocations: 12.92 MB / 0.7647 GB, free: 67.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/1.01, allocations: 12.03 kB / 0.7647 GB, free: 67.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00186/1.012, allocations: 455.2 kB / 0.7651 GB, free: 66.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00265/1.014, allocations: 0.9386 MB / 0.766 GB, free: 65.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002508/1.015, allocations: 51.56 kB / 0.7661 GB, free: 65.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005116/1.02, allocations: 5.463 MB / 0.7714 GB, free: 60.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006875/1.021, allocations: 1.459 MB / 0.7728 GB, free: 58.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00953/1.03, allocations: 7.718 MB / 0.7804 GB, free: 50.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007224/1.031, allocations: 333.5 kB / 0.7807 GB, free: 50.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000505/1.031, allocations: 43.92 kB / 0.7807 GB, free: 50.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001981/1.033, allocations: 195.7 kB / 0.7809 GB, free: 50.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006678/1.034, allocations: 137 kB / 0.781 GB, free: 49.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002295/1.034, allocations: 71.66 kB / 0.7811 GB, free: 49.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00317/1.037, allocations: 1.705 MB / 0.7828 GB, free: 48.19 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.037, allocations: 0 / 0.7828 GB, free: 48.19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005156/1.043, allocations: 1.101 MB / 0.7839 GB, free: 47.1 MB / 490.7 MB 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01029/1.053, allocations: 8.367 MB / 0.792 GB, free: 38.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009566/1.063, allocations: 6.503 MB / 0.7984 GB, free: 32.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.063, allocations: 0 / 0.7984 GB, free: 32.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003343/1.066, allocations: 2.531 MB / 0.8008 GB, free: 29.51 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004911/1.071, allocations: 355.3 kB / 0.8012 GB, free: 29.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08685/1.158, allocations: 38.8 MB / 0.8391 GB, free: 3.633 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004364/1.162, allocations: 3.17 MB / 0.8422 GB, free: 448 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002848/1.165, allocations: 1.716 MB / 0.8438 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of SimCode: time 7.82e-07/1.165, allocations: 8 kB / 0.8439 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.284/8.449, allocations: 124.3 MB / 0.9652 GB, free: 100.5 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches