Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 110.9 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 193.3 kB / 18.25 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 44.18 MB / 336.3 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.28 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 60.83 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04504/0.1556, allocations: 46.38 MB / 0.5031 GB, free: 68 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3144/0.4701, allocations: 9.536 MB / 0.5124 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01156/0.4817, allocations: 192.8 kB / 0.5126 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005136/0.4869, allocations: 2.125 MB / 0.5147 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0064/0.4933, allocations: 1.881 MB / 0.5165 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.4951, allocations: 0.5834 MB / 0.5171 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007257/0.5024, allocations: 4.307 MB / 0.5213 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005297/0.5077, allocations: 3.29 MB / 0.5245 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004155/0.5119, allocations: 1.604 MB / 0.5261 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004615/0.5166, allocations: 2.432 MB / 0.5285 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001336/0.5179, allocations: 346.1 kB / 0.5288 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002798/0.5207, allocations: 1.062 MB / 0.5298 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.5229, allocations: 2.015 MB / 0.5318 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003104/0.526, allocations: 2.423 MB / 0.5342 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008865/0.5349, allocations: 7.534 MB / 0.5415 GB, free: 12.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.5349, allocations: 0 / 0.5415 GB, free: 12.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.658e-06/0.535, allocations: 6.656 kB / 0.5415 GB, free: 12.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002736/0.5352, allocations: 3.938 kB / 0.5415 GB, free: 12.35 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.0114/0.5466, allocations: 5.097 MB / 0.5465 GB, free: 7.871 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.5467, allocations: 12.03 kB / 0.5465 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001523/0.5482, allocations: 0.8511 MB / 0.5474 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/0.559, allocations: 3.198 MB / 0.5505 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005797/0.5649, allocations: 2.673 MB / 0.5531 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.5651, allocations: 252.7 kB / 0.5533 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.5661, allocations: 331.5 kB / 0.5536 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02064/0.5868, allocations: 12.24 MB / 0.5656 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001884/0.587, allocations: 31.66 kB / 0.5656 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00117/0.5882, allocations: 155.8 kB / 0.5658 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004983/0.5932, allocations: 2.844 MB / 0.5686 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/0.6165, allocations: 11.14 MB / 0.5794 GB, free: 5.938 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06266/0.6792, allocations: 40.71 MB / 0.6192 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009712/0.6889, allocations: 4.685 MB / 0.6238 GB, free: 7.516 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003493/0.6924, allocations: 2.429 MB / 0.6261 GB, free: 5.086 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001438/0.6939, allocations: 1.321 MB / 0.6274 GB, free: 3.551 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.334e-05/0.694, allocations: 56.56 kB / 0.6275 GB, free: 3.488 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.292e-06/0.694, allocations: 0 / 0.6275 GB, free: 3.488 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04764/0.7417, allocations: 18.67 MB / 0.6457 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.7418, allocations: 77.41 kB / 0.6458 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005741/0.7475, allocations: 3.173 MB / 0.6489 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.7478, allocations: 68.61 kB / 0.649 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002578/0.7503, allocations: 3.124 MB / 0.652 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/0.7514, allocations: 0.9669 MB / 0.653 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002056/0.7535, allocations: 1.178 MB / 0.6541 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.7536, allocations: 305.1 kB / 0.6544 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/0.7574, allocations: 2.459 MB / 0.6568 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006352/0.7637, allocations: 5.711 MB / 0.6624 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/0.7747, allocations: 8.984 MB / 0.6711 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/0.7749, allocations: 36 kB / 0.6712 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.0162/0.7911, allocations: 8.983 MB / 0.68 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.7913, allocations: 52 kB / 0.68 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/0.7915, allocations: 120.2 kB / 0.6801 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003285/0.7948, allocations: 1.058 MB / 0.6811 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/0.7993, allocations: 1.337 MB / 0.6825 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007881/0.8072, allocations: 5.54 MB / 0.6879 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004389/0.8116, allocations: 327.7 kB / 0.6882 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/0.8127, allocations: 342.5 kB / 0.6885 GB, free: 1.473 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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 (725): * Single equations (assignments): 718 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005373/0.8181, allocations: 2.409 MB / 0.6909 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009307/0.8191, allocations: 308 kB / 0.6912 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009843/0.8289, allocations: 5.375 MB / 0.6964 GB, free: 9.309 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.299e-05/0.829, allocations: 44 kB / 0.6964 GB, free: 9.266 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/0.829, allocations: 8 kB / 0.6964 GB, free: 9.258 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/0.8291, allocations: 11.95 kB / 0.6965 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2642/1.093, allocations: 13.08 MB / 0.7092 GB, free: 199.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.133e-05/1.093, allocations: 11.44 kB / 0.7092 GB, free: 199.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/1.095, allocations: 420.3 kB / 0.7096 GB, free: 199.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003058/1.098, allocations: 0.8941 MB / 0.7105 GB, free: 199.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002817/1.099, allocations: 55.42 kB / 0.7106 GB, free: 199.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008185/1.107, allocations: 4.837 MB / 0.7153 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-05/1.107, allocations: 19.59 kB / 0.7153 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/1.119, allocations: 8.019 MB / 0.7231 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.12, allocations: 360.4 kB / 0.7235 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009184/1.121, allocations: 59.05 kB / 0.7235 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.123, allocations: 145.8 kB / 0.7237 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004498/1.124, allocations: 173.7 kB / 0.7238 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.124, allocations: 77.83 kB / 0.7239 GB, free: 193.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003868/1.128, allocations: 1.96 MB / 0.7258 GB, free: 193.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.128, allocations: 0 / 0.7258 GB, free: 193.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005153/1.133, allocations: 1.09 MB / 0.7269 GB, free: 193.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01076/1.144, allocations: 8.68 MB / 0.7354 GB, free: 189.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.014/1.158, allocations: 9.641 MB / 0.7448 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/1.158, allocations: 0 / 0.7448 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002758/1.161, allocations: 2.251 MB / 0.747 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003512/1.164, allocations: 451.8 kB / 0.7474 GB, free: 182.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07544/1.24, allocations: 53.62 MB / 0.7998 GB, free: 123.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005669/1.245, allocations: 3.704 MB / 0.8034 GB, free: 119.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005097/1.25, allocations: 2.157 MB / 0.8055 GB, free: 117.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003563/1.254, allocations: 2.1 MB / 0.8076 GB, free: 115.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.254, allocations: 0 / 0.8076 GB, free: 115.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1076/1.362, allocations: 69.88 MB / 0.8758 GB, free: 46.01 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/1.362, allocations: 208.5 kB / 0.876 GB, free: 45.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.542/4.904, allocations: 0 / 0.876 GB, free: 45.76 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches