Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009681/0.0009682, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 226.5 MB / 243.4 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007634/0.0007634, allocations: 91.97 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.286/0.286, allocations: 44.82 MB / 392.3 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002821/0.0002822, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2672, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01681/0.284, allocations: 26.84 MB / 0.5422 GB, free: 18.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.2945, allocations: 6.413 MB / 0.5484 GB, free: 13.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003575/0.2981, allocations: 121.4 kB / 0.5485 GB, free: 13.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002857/0.301, allocations: 1.284 MB / 0.5498 GB, free: 13.29 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009253/0.3103, allocations: 3.997 MB / 0.5537 GB, free: 11.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.3121, allocations: 447.5 kB / 0.5541 GB, free: 11.51 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005414/0.3176, allocations: 3.992 MB / 0.558 GB, free: 10.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004516/0.3221, allocations: 2.367 MB / 0.5603 GB, free: 9.117 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002495/0.3247, allocations: 1.024 MB / 0.5613 GB, free: 8.602 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003005/0.3277, allocations: 1.666 MB / 0.563 GB, free: 7.773 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.3288, allocations: 134.8 kB / 0.5631 GB, free: 7.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002667/0.3314, allocations: 0.8844 MB / 0.564 GB, free: 7.363 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.3339, allocations: 1.462 MB / 0.5654 GB, free: 6.586 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002718/0.3367, allocations: 1.7 MB / 0.567 GB, free: 4.938 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005001/0.3417, allocations: 4.721 MB / 0.5717 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3417, allocations: 0 / 0.5717 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3418, allocations: 0 / 0.5717 GB, free: 212 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001829/0.3419, allocations: 0 / 0.5717 GB, free: 212 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.006741/0.3487, allocations: 3.426 MB / 0.575 GB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3488, allocations: 8.031 kB / 0.575 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001628/0.3504, allocations: 0.7044 MB / 0.5757 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.361, allocations: 3.177 MB / 0.5788 GB, free: 8.805 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004146/0.3652, allocations: 2.084 MB / 0.5808 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.3654, allocations: 189 kB / 0.581 GB, free: 6.488 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008256/0.3663, allocations: 251.7 kB / 0.5813 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01662/0.3829, allocations: 10.48 MB / 0.5915 GB, free: 11.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/0.3831, allocations: 23.81 kB / 0.5915 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004812/0.3836, allocations: 115.8 kB / 0.5916 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004204/0.3878, allocations: 2.553 MB / 0.5941 GB, free: 8.633 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.406, allocations: 9.898 MB / 0.6038 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04898/0.4551, allocations: 34.48 MB / 0.6374 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009016/0.4641, allocations: 5.169 MB / 0.6425 GB, free: 6.023 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/0.4672, allocations: 2.288 MB / 0.6447 GB, free: 3.738 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001623/0.4688, allocations: 1.884 MB / 0.6466 GB, free: 1.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.4689, allocations: 52.55 kB / 0.6466 GB, free: 1.461 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 4.859e-06/0.4689, allocations: 0 / 0.6466 GB, free: 1.461 MB / 458.7 MB Notification: Performance of matching and sorting (n=235): time 0.03556/0.5045, allocations: 13.93 MB / 0.6602 GB, free: 3.473 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.5046, allocations: 73.41 kB / 0.6603 GB, free: 3.391 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/0.508, allocations: 2.62 MB / 0.6629 GB, free: 0.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003708/0.5085, allocations: 61.69 kB / 0.6629 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/0.5103, allocations: 2.628 MB / 0.6655 GB, free: 14.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001059/0.5114, allocations: 0.8519 MB / 0.6663 GB, free: 13.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004158/0.5118, allocations: 100 kB / 0.6664 GB, free: 13.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004073/0.5122, allocations: 0.5292 MB / 0.6669 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003211/0.5154, allocations: 2.181 MB / 0.669 GB, free: 10.33 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004744/0.5202, allocations: 5.036 MB / 0.674 GB, free: 3.887 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2153/0.7355, allocations: 7.934 MB / 0.6817 GB, free: 122.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.999e-05/0.7356, allocations: 29.84 kB / 0.6817 GB, free: 122.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01192/0.7475, allocations: 7.819 MB / 0.6894 GB, free: 119.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.786e-05/0.7476, allocations: 45.5 kB / 0.6894 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.7477, allocations: 105.1 kB / 0.6895 GB, free: 119.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/0.75, allocations: 0.7906 MB / 0.6903 GB, free: 119.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003568/0.7536, allocations: 1.182 MB / 0.6914 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004658/0.7583, allocations: 4.193 MB / 0.6955 GB, free: 117.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003159/0.7615, allocations: 295.8 kB / 0.6958 GB, free: 117.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007262/0.7622, allocations: 301.1 kB / 0.6961 GB, free: 117.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003524/0.7658, allocations: 2.021 MB / 0.6981 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005699/0.7663, allocations: 263 kB / 0.6983 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007673/0.774, allocations: 4.715 MB / 0.7029 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.891e-05/0.7742, allocations: 43.34 kB / 0.703 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/0.7742, allocations: 3.781 kB / 0.703 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.7742, allocations: 9.656 kB / 0.703 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.791, allocations: 10.52 MB / 0.7133 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/0.791, allocations: 6.312 kB / 0.7133 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.7924, allocations: 365 kB / 0.7136 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/0.7942, allocations: 0.6578 MB / 0.7143 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.7944, allocations: 43.47 kB / 0.7143 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.7979, allocations: 3.656 MB / 0.7179 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.798, allocations: 16.16 kB / 0.7179 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008347/0.8063, allocations: 7.103 MB / 0.7248 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/0.807, allocations: 314.2 kB / 0.7251 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000299/0.8073, allocations: 36.98 kB / 0.7252 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.8084, allocations: 152.6 kB / 0.7253 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004501/0.8089, allocations: 134.3 kB / 0.7254 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/0.8091, allocations: 63.7 kB / 0.7255 GB, free: 105.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002048/0.8111, allocations: 1.601 MB / 0.7271 GB, free: 104.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.8111, allocations: 0 / 0.7271 GB, free: 104.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003631/0.8148, allocations: 0.9277 MB / 0.728 GB, free: 103.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * 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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008822/0.8236, allocations: 7.77 MB / 0.7356 GB, free: 96.48 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006679/0.8303, allocations: 5.307 MB / 0.7407 GB, free: 91.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.8304, allocations: 0 / 0.7407 GB, free: 91.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002261/0.8326, allocations: 2.019 MB / 0.7427 GB, free: 89.17 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/0.8366, allocations: 340.2 kB / 0.743 GB, free: 88.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03997/0.8766, allocations: 29.56 MB / 0.7719 GB, free: 56.69 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002745/0.8794, allocations: 3.175 MB / 0.775 GB, free: 53.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002062/0.8815, allocations: 1.765 MB / 0.7767 GB, free: 51.72 MB / 490.7 MB Notification: Performance of SimCode: time 9.02e-07/0.8815, allocations: 0 / 0.7767 GB, free: 51.72 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.353/7.235, allocations: 83.11 MB / 0.8579 GB, free: 0.5938 MB / 0.5105 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches