Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 201.7 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.253/1.253, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000757/0.000757, allocations: 88.77 kB / 295.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2964/0.2964, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002583, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3331, allocations: 62.96 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.04117/0.3743, allocations: 57.61 MB / 0.5722 GB, free: 12.12 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03094/0.4053, allocations: 12.16 MB / 0.5841 GB, free: 2.836 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01461/0.4199, allocations: 275.3 kB / 0.5844 GB, free: 2.566 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.4302, allocations: 2.874 MB / 0.5872 GB, free: 372 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02638/0.4566, allocations: 8.611 MB / 0.5956 GB, free: 7.723 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005283/0.4619, allocations: 0.9518 MB / 0.5965 GB, free: 6.77 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04446/0.5064, allocations: 35.84 MB / 0.6315 GB, free: 2.883 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007733/0.5142, allocations: 5.207 MB / 0.6366 GB, free: 13.61 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003364/0.5176, allocations: 1.876 MB / 0.6384 GB, free: 11.72 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00503/0.5226, allocations: 3.089 MB / 0.6414 GB, free: 8.625 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.5238, allocations: 216 kB / 0.6416 GB, free: 8.414 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.5266, allocations: 1.119 MB / 0.6427 GB, free: 7.293 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002771/0.5293, allocations: 2.548 MB / 0.6452 GB, free: 4.738 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003329/0.5327, allocations: 2.786 MB / 0.648 GB, free: 1.93 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007868/0.5406, allocations: 7.688 MB / 0.6555 GB, free: 10.22 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.5406, allocations: 11.94 kB / 0.6555 GB, free: 10.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5406, allocations: 0 / 0.6555 GB, free: 10.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003219/0.5409, allocations: 0 / 0.6555 GB, free: 10.21 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01366/0.5546, allocations: 6.078 MB / 0.6614 GB, free: 4.055 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.5547, allocations: 12.03 kB / 0.6614 GB, free: 4.043 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002344/0.557, allocations: 1.01 MB / 0.6624 GB, free: 3.023 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02781/0.5848, allocations: 5.733 MB / 0.668 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009019/0.5939, allocations: 4.799 MB / 0.6727 GB, free: 8.414 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002589/0.5942, allocations: 320.4 kB / 0.673 GB, free: 8.098 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.5956, allocations: 443.4 kB / 0.6734 GB, free: 7.664 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2498/0.8454, allocations: 15.52 MB / 0.6886 GB, free: 127.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.8456, allocations: 57.81 kB / 0.6886 GB, free: 127.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006782/0.8463, allocations: 196.4 kB / 0.6888 GB, free: 127.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005484/0.8518, allocations: 3.382 MB / 0.6921 GB, free: 127.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02916/0.881, allocations: 14.67 MB / 0.7064 GB, free: 122.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07386/0.9549, allocations: 55.04 MB / 0.7602 GB, free: 76.65 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01536/0.9703, allocations: 8.128 MB / 0.7681 GB, free: 68.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005138/0.9755, allocations: 4.766 MB / 0.7728 GB, free: 63.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001496/0.977, allocations: 2.2 MB / 0.7749 GB, free: 60.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/0.9771, allocations: 69.08 kB / 0.775 GB, free: 60.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.276e-06/0.9771, allocations: 4 kB / 0.775 GB, free: 60.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.09989/1.077, allocations: 39.51 MB / 0.8136 GB, free: 21.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/1.077, allocations: 119 kB / 0.8137 GB, free: 21.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005558/1.083, allocations: 4.295 MB / 0.8179 GB, free: 16.89 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008067/1.083, allocations: 87.67 kB / 0.818 GB, free: 16.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001775/1.085, allocations: 3.826 MB / 0.8217 GB, free: 12.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001553/1.087, allocations: 1.487 MB / 0.8232 GB, free: 11.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008636/1.088, allocations: 148 kB / 0.8233 GB, free: 11.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000458/1.088, allocations: 0.6325 MB / 0.8239 GB, free: 10.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.093, allocations: 3.911 MB / 0.8277 GB, free: 6.738 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007473/1.101, allocations: 7.674 MB / 0.8352 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01612/1.117, allocations: 12.6 MB / 0.8475 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.117, allocations: 40 kB / 0.8476 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.03051/1.148, allocations: 14.1 MB / 0.8614 GB, free: 0.6523 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002025/1.148, allocations: 60 kB / 0.8614 GB, free: 0.5938 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002638/1.148, allocations: 128 kB / 0.8615 GB, free: 480 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008773/1.157, allocations: 2.689 MB / 0.8642 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007034/1.164, allocations: 1.758 MB / 0.8659 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2849/1.449, allocations: 14.1 MB / 0.8796 GB, free: 156 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/1.455, allocations: 0.4924 MB / 0.8801 GB, free: 156 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00134/1.457, allocations: 424.1 kB / 0.8805 GB, free: 156 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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 (911): * Single equations (assignments): 903 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005466/1.462, allocations: 2.866 MB / 0.8833 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/1.463, allocations: 460.9 kB / 0.8838 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01726/1.481, allocations: 10.54 MB / 0.8941 GB, free: 152.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.11e-05/1.481, allocations: 68.47 kB / 0.8941 GB, free: 152.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.085e-05/1.481, allocations: 11.78 kB / 0.8941 GB, free: 152.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-05/1.481, allocations: 19.77 kB / 0.8942 GB, free: 152.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04004/1.521, allocations: 21.3 MB / 0.915 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.522e-05/1.521, allocations: 13.69 kB / 0.915 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002959/1.524, allocations: 0.6855 MB / 0.9156 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006717/1.531, allocations: 2.479 MB / 0.9181 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005611/1.531, allocations: 82.97 kB / 0.9181 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/1.546, allocations: 12.89 MB / 0.9307 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/1.546, allocations: 15.5 kB / 0.9307 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02111/1.567, allocations: 15.06 MB / 0.9455 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/1.568, allocations: 0.4939 MB / 0.9459 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/1.57, allocations: 76.92 kB / 0.946 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003142/1.573, allocations: 308.7 kB / 0.9463 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009243/1.574, allocations: 268.7 kB / 0.9466 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003974/1.574, allocations: 115.3 kB / 0.9467 GB, free: 126 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004233/1.578, allocations: 2.671 MB / 0.9493 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.11e-07/1.578, allocations: 0 / 0.9493 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006346/1.585, allocations: 1.635 MB / 0.9509 GB, free: 121.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02074/1.606, allocations: 15.79 MB / 0.9663 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01307/1.619, allocations: 9.773 MB / 0.9758 GB, free: 95.97 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/1.619, allocations: 3.938 kB / 0.9758 GB, free: 95.96 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005469/1.624, allocations: 4.295 MB / 0.98 GB, free: 91.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/1.635, allocations: 0.6985 MB / 0.9807 GB, free: 90.97 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07777/1.713, allocations: 55.62 MB / 1.035 GB, free: 31.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005633/1.719, allocations: 4.557 MB / 1.039 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004199/1.723, allocations: 2.893 MB / 1.042 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of SimCode: time 1.022e-06/1.723, allocations: 0 / 1.042 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.828/11.55, allocations: 159.9 MB / 1.198 GB, free: 80.4 MB / 0.5417 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches