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.001273/0.001273, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001335/0.001335, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.332/1.332, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2088/0.2088, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.86 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1166, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01485/0.1314, allocations: 15 MB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009215/0.1407, allocations: 4.415 MB / 488.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002047/0.1428, allocations: 79.88 kB / 488.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003825/0.1466, allocations: 2.219 MB / 491.1 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003981/0.1507, allocations: 2.023 MB / 493.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.1519, allocations: 0.6044 MB / 493.7 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004867/0.1568, allocations: 4.284 MB / 498 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00351/0.1603, allocations: 3.162 MB / 0.4894 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.1625, allocations: 1.58 MB / 0.4909 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.1652, allocations: 2.227 MB / 0.4931 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008899/0.1661, allocations: 340 kB / 0.4934 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0025/0.1686, allocations: 1.049 MB / 0.4945 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/0.1707, allocations: 1.991 MB / 0.4964 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.1735, allocations: 2.399 MB / 0.4988 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2142/0.3877, allocations: 7.493 MB / 0.5061 GB, free: 21.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.3878, allocations: 0 / 0.5061 GB, free: 21.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3878, allocations: 0 / 0.5061 GB, free: 21.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003169/0.3881, allocations: 0 / 0.5061 GB, free: 21.31 MB / 382.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.01254/0.4006, allocations: 5.094 MB / 0.511 GB, free: 19.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.4007, allocations: 9.594 kB / 0.5111 GB, free: 19.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.402, allocations: 0.8553 MB / 0.5119 GB, free: 19.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/0.4136, allocations: 3.204 MB / 0.515 GB, free: 18.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006965/0.4206, allocations: 2.677 MB / 0.5176 GB, free: 18.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003178/0.421, allocations: 249.7 kB / 0.5179 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002289/0.4233, allocations: 333.1 kB / 0.5182 GB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/0.4441, allocations: 12.24 MB / 0.5301 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.4443, allocations: 32.72 kB / 0.5302 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001263/0.4456, allocations: 159.4 kB / 0.5303 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004297/0.4499, allocations: 2.848 MB / 0.5331 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/0.4697, allocations: 11.12 MB / 0.544 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06091/0.5307, allocations: 40.71 MB / 0.5837 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01025/0.541, allocations: 4.682 MB / 0.5883 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003758/0.5448, allocations: 2.431 MB / 0.5907 GB, free: 3.918 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/0.5461, allocations: 1.328 MB / 0.592 GB, free: 2.383 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.283e-05/0.5462, allocations: 58.25 kB / 0.592 GB, free: 2.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 6.382e-06/0.5462, allocations: 0 / 0.592 GB, free: 2.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=267): time 0.04707/0.5933, allocations: 18.68 MB / 0.6103 GB, free: 15.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.5934, allocations: 81.41 kB / 0.6103 GB, free: 15.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005986/0.5994, allocations: 3.174 MB / 0.6134 GB, free: 12.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004101/0.5998, allocations: 57.7 kB / 0.6135 GB, free: 12.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.6021, allocations: 3.121 MB / 0.6165 GB, free: 9.105 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/0.6035, allocations: 0.9669 MB / 0.6175 GB, free: 8.148 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002566/0.606, allocations: 1.178 MB / 0.6186 GB, free: 6.961 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.6062, allocations: 301.1 kB / 0.6189 GB, free: 6.664 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004054/0.6102, allocations: 2.465 MB / 0.6213 GB, free: 4.195 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005876/0.6161, allocations: 5.723 MB / 0.6269 GB, free: 12.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.6275, allocations: 8.973 MB / 0.6357 GB, free: 2.828 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001274/0.6276, allocations: 32 kB / 0.6357 GB, free: 2.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01791/0.6455, allocations: 8.994 MB / 0.6445 GB, free: 10.37 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.6457, allocations: 52 kB / 0.6445 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001814/0.6459, allocations: 116 kB / 0.6446 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003339/0.6492, allocations: 1.047 MB / 0.6457 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004634/0.6539, allocations: 1.345 MB / 0.647 GB, free: 7.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007702/0.6616, allocations: 5.535 MB / 0.6524 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/0.6658, allocations: 326.9 kB / 0.6527 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/0.6669, allocations: 343.9 kB / 0.653 GB, free: 1.488 MB / 494.1 MB 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.005673/0.6726, allocations: 2.411 MB / 0.6554 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008734/0.6735, allocations: 311.6 kB / 0.6557 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/0.6852, allocations: 5.38 MB / 0.6609 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.564e-05/0.6853, allocations: 41.53 kB / 0.661 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/0.6853, allocations: 0 / 0.661 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-05/0.6854, allocations: 15.95 kB / 0.661 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02729/0.7127, allocations: 13.09 MB / 0.6738 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.724e-05/0.7127, allocations: 8 kB / 0.6738 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/0.7146, allocations: 419.4 kB / 0.6742 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002849/0.7175, allocations: 0.8959 MB / 0.6751 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002969/0.7178, allocations: 55.98 kB / 0.6751 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006303/0.7241, allocations: 4.834 MB / 0.6798 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/0.7241, allocations: 19.88 kB / 0.6798 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/0.7363, allocations: 8.011 MB / 0.6877 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.7374, allocations: 361.1 kB / 0.688 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008259/0.7382, allocations: 63.83 kB / 0.6881 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.74, allocations: 151.7 kB / 0.6882 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004556/0.7405, allocations: 161.6 kB / 0.6884 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/0.7407, allocations: 79.98 kB / 0.6884 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003775/0.7445, allocations: 1.965 MB / 0.6904 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7445, allocations: 0 / 0.6904 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005746/0.7503, allocations: 1.081 MB / 0.6914 GB, free: 9.562 MB / 0.5294 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.01274/0.763, allocations: 8.688 MB / 0.6999 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2197/0.9827, allocations: 9.632 MB / 0.7093 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.045e-05/0.9828, allocations: 2.75 kB / 0.7093 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003469/0.9863, allocations: 2.258 MB / 0.7115 GB, free: 194.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.989, allocations: 456.2 kB / 0.712 GB, free: 194.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05979/1.049, allocations: 51.29 MB / 0.762 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006224/1.055, allocations: 3.708 MB / 0.7657 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004901/1.06, allocations: 2.15 MB / 0.7678 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003076/1.063, allocations: 2.097 MB / 0.7698 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/1.063, allocations: 8 kB / 0.7698 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09409/1.157, allocations: 69.97 MB / 0.8382 GB, free: 67.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/12.09, allocations: 10.83 kB / 0.8382 GB, free: 67.68 MB / 0.5294 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