Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009338/0.0009335, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007534/0.0007534, allocations: 89.42 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3023/0.3023, allocations: 43.57 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003246, allocations: 16 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09197, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2344/0.3264, allocations: 42.65 MB / 0.5211 GB, free: 20.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02172/0.3482, allocations: 9.208 MB / 0.5301 GB, free: 13.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009257/0.3575, allocations: 196.1 kB / 0.5302 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006514/0.364, allocations: 2.083 MB / 0.5323 GB, free: 13.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01704/0.3811, allocations: 6.226 MB / 0.5384 GB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003478/0.3846, allocations: 0.5562 MB / 0.5389 GB, free: 10.33 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006455/0.3911, allocations: 4.956 MB / 0.5437 GB, free: 8.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005704/0.3968, allocations: 3.845 MB / 0.5475 GB, free: 7.035 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0032/0.4001, allocations: 1.352 MB / 0.5488 GB, free: 6.582 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004031/0.4041, allocations: 2.137 MB / 0.5509 GB, free: 5.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001376/0.4055, allocations: 173.7 kB / 0.5511 GB, free: 5.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003613/0.4092, allocations: 0.9232 MB / 0.552 GB, free: 5.715 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003438/0.4126, allocations: 1.835 MB / 0.5538 GB, free: 5.148 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004675/0.4173, allocations: 2.179 MB / 0.5559 GB, free: 3.566 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008793/0.4262, allocations: 6.143 MB / 0.5619 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4262, allocations: 0 / 0.5619 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4262, allocations: 3.938 kB / 0.5619 GB, free: 15.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004146/0.4267, allocations: 0 / 0.5619 GB, free: 15.43 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01177/0.4384, allocations: 4.303 MB / 0.5661 GB, free: 12.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.4385, allocations: 13.78 kB / 0.5661 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002818/0.4413, allocations: 0.8906 MB / 0.567 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.4529, allocations: 3.292 MB / 0.5702 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006813/0.4597, allocations: 2.85 MB / 0.573 GB, free: 6.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000255/0.46, allocations: 262.5 kB / 0.5732 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001648/0.4617, allocations: 355.6 kB / 0.5736 GB, free: 5.504 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02374/0.4855, allocations: 12.63 MB / 0.5859 GB, free: 8.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.4857, allocations: 35.66 kB / 0.5859 GB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000568/0.4862, allocations: 167.8 kB / 0.5861 GB, free: 8.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005406/0.4916, allocations: 3.028 MB / 0.5891 GB, free: 5.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02231/0.514, allocations: 11.28 MB / 0.6001 GB, free: 9.812 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06435/0.5784, allocations: 42.34 MB / 0.6414 GB, free: 14.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00957/0.588, allocations: 4.7 MB / 0.646 GB, free: 9.406 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003667/0.5917, allocations: 2.432 MB / 0.6484 GB, free: 6.969 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001439/0.5932, allocations: 1.319 MB / 0.6497 GB, free: 5.426 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.5933, allocations: 52.56 kB / 0.6497 GB, free: 5.367 MB / 474.7 MB Notification: Performance of pre-optimization done (n=250): time 4.959e-06/0.5933, allocations: 0 / 0.6497 GB, free: 5.367 MB / 474.7 MB Notification: Performance of matching and sorting (n=268): time 0.04409/0.6374, allocations: 19.51 MB / 0.6688 GB, free: 1.688 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.6375, allocations: 99.11 kB / 0.6689 GB, free: 1.574 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2317/0.8692, allocations: 3.251 MB / 0.672 GB, free: 137.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006652/0.8699, allocations: 58.98 kB / 0.6721 GB, free: 137.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002583/0.8725, allocations: 3.283 MB / 0.6753 GB, free: 136.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001315/0.8738, allocations: 0.9741 MB / 0.6763 GB, free: 135.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/0.8742, allocations: 118.7 kB / 0.6764 GB, free: 135.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004285/0.8746, allocations: 0.5695 MB / 0.6769 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00451/0.8791, allocations: 2.465 MB / 0.6793 GB, free: 135.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004709/0.8838, allocations: 5.863 MB / 0.6851 GB, free: 130.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009171/0.893, allocations: 9.142 MB / 0.694 GB, free: 123.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.8932, allocations: 33.34 kB / 0.694 GB, free: 123.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01563/0.9088, allocations: 9.115 MB / 0.7029 GB, free: 120.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.981e-05/0.909, allocations: 55.91 kB / 0.703 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/0.9091, allocations: 121.5 kB / 0.7031 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002927/0.912, allocations: 1.057 MB / 0.7041 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004399/0.9164, allocations: 1.39 MB / 0.7055 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.9226, allocations: 5.132 MB / 0.7105 GB, free: 117.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004859/0.9275, allocations: 334.2 kB / 0.7108 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/0.9288, allocations: 355.1 kB / 0.7112 GB, free: 117 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (747): * Single equations (assignments): 740 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00612/0.9349, allocations: 2.476 MB / 0.7136 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007405/0.9356, allocations: 328.2 kB / 0.7139 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009632/0.9453, allocations: 5.353 MB / 0.7191 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.903e-05/0.9454, allocations: 49.69 kB / 0.7192 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.9454, allocations: 6.969 kB / 0.7192 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.9455, allocations: 14.81 kB / 0.7192 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/0.9696, allocations: 13.34 MB / 0.7322 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/0.9697, allocations: 11.84 kB / 0.7322 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/0.9715, allocations: 427.6 kB / 0.7326 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/0.9741, allocations: 0.8833 MB / 0.7335 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003437/0.9745, allocations: 59.52 kB / 0.7335 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005065/0.9796, allocations: 4.497 MB / 0.7379 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/0.9796, allocations: 15.94 kB / 0.7379 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/0.9908, allocations: 8.013 MB / 0.7458 GB, free: 97.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002288/0.9931, allocations: 0.733 MB / 0.7465 GB, free: 97.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007546/0.9939, allocations: 51.45 kB / 0.7465 GB, free: 96.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/0.9956, allocations: 154.5 kB / 0.7467 GB, free: 96.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006145/0.9963, allocations: 172.1 kB / 0.7468 GB, free: 96.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/0.9965, allocations: 84.45 kB / 0.7469 GB, free: 96.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003302/0.9998, allocations: 1.988 MB / 0.7489 GB, free: 95.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9998, allocations: 0 / 0.7489 GB, free: 95.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006438/1.006, allocations: 1.111 MB / 0.75 GB, free: 93.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (209): * Single equations (assignments): 202 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01071/1.017, allocations: 8.687 MB / 0.7584 GB, free: 85.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007815/1.025, allocations: 6.033 MB / 0.7643 GB, free: 79.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.025, allocations: 0 / 0.7643 GB, free: 79.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/1.027, allocations: 2.246 MB / 0.7665 GB, free: 77.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006927/1.034, allocations: 419.6 kB / 0.7669 GB, free: 76.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0585/1.093, allocations: 36.97 MB / 0.803 GB, free: 36.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004595/1.098, allocations: 3.834 MB / 0.8068 GB, free: 32.85 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002794/1.1, allocations: 2.253 MB / 0.809 GB, free: 30.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/1.1, allocations: 0 / 0.809 GB, free: 30.59 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.484/8.585, allocations: 104 MB / 0.9105 GB, free: 126.2 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches