Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_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.001377/0.001377, allocations: 108 kB / 15.98 MB, free: 6.348 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.00128/0.001281, allocations: 192.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3791/0.3791, allocations: 43.5 MB / 313.6 MB, free: 8.504 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 74.55 kB / 382.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1551, allocations: 57.78 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3409/0.4961, allocations: 47.11 MB / 487.2 MB, free: 21.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02665/0.5228, allocations: 9.631 MB / 496.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01544/0.5383, allocations: 195.6 kB / 497 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004982/0.5433, allocations: 2.137 MB / 499.2 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005472/0.5489, allocations: 1.938 MB / 0.4894 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.5506, allocations: 0.5811 MB / 0.4899 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007038/0.5577, allocations: 4.458 MB / 0.4943 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006682/0.5644, allocations: 3.367 MB / 0.4976 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/0.5681, allocations: 1.673 MB / 0.4992 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004836/0.573, allocations: 2.487 MB / 0.5016 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00188/0.5749, allocations: 349.2 kB / 0.502 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004217/0.5791, allocations: 1.059 MB / 0.503 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004275/0.5834, allocations: 2.084 MB / 0.505 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007612/0.591, allocations: 2.516 MB / 0.5075 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01417/0.6052, allocations: 7.773 MB / 0.5151 GB, free: 2.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.6053, allocations: 0 / 0.5151 GB, free: 2.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6053, allocations: 0 / 0.5151 GB, free: 2.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002744/0.6056, allocations: 0 / 0.5151 GB, free: 2.027 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: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01318/0.6188, allocations: 5.284 MB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.6188, allocations: 13.58 kB / 0.5203 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001967/0.6208, allocations: 0.8899 MB / 0.5211 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/0.6342, allocations: 3.2 MB / 0.5243 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.6453, allocations: 2.853 MB / 0.527 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005342/0.646, allocations: 262.9 kB / 0.5273 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002822/0.6488, allocations: 343.6 kB / 0.5276 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03616/0.685, allocations: 12.65 MB / 0.54 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002973/0.6853, allocations: 39.64 kB / 0.54 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002488/0.6878, allocations: 163.8 kB / 0.5402 GB, free: 10.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006668/0.6945, allocations: 3.032 MB / 0.5431 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03009/0.7247, allocations: 11.33 MB / 0.5542 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0841/0.8088, allocations: 42.31 MB / 0.5955 GB, free: 244 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.8206, allocations: 4.708 MB / 0.6001 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004247/0.8249, allocations: 2.438 MB / 0.6025 GB, free: 8.855 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/0.8265, allocations: 1.327 MB / 0.6038 GB, free: 7.305 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.869e-05/0.8266, allocations: 52.56 kB / 0.6038 GB, free: 7.246 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 7.354e-06/0.8267, allocations: 0 / 0.6038 GB, free: 7.246 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05081/0.8775, allocations: 19.55 MB / 0.6229 GB, free: 3.531 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.8776, allocations: 111 kB / 0.623 GB, free: 3.406 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006963/0.8846, allocations: 3.275 MB / 0.6262 GB, free: 128 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005187/0.8851, allocations: 57.7 kB / 0.6263 GB, free: 64 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2895/1.175, allocations: 3.285 MB / 0.6295 GB, free: 143.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.176, allocations: 0.9761 MB / 0.6305 GB, free: 142.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/1.178, allocations: 1.21 MB / 0.6316 GB, free: 142.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.529e-05/1.178, allocations: 306 kB / 0.6319 GB, free: 142.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003301/1.181, allocations: 2.489 MB / 0.6344 GB, free: 141.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004519/1.186, allocations: 5.877 MB / 0.6401 GB, free: 136.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008329/1.194, allocations: 9.181 MB / 0.6491 GB, free: 129.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.991e-05/1.194, allocations: 33.03 kB / 0.6491 GB, free: 129.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01483/1.209, allocations: 9.15 MB / 0.658 GB, free: 126.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/1.209, allocations: 56 kB / 0.6581 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002524/1.21, allocations: 122.7 kB / 0.6582 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003177/1.213, allocations: 1.062 MB / 0.6592 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004819/1.218, allocations: 1.387 MB / 0.6606 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007321/1.225, allocations: 5.551 MB / 0.666 GB, free: 123.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004814/1.23, allocations: 327.2 kB / 0.6663 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/1.231, allocations: 350.8 kB / 0.6667 GB, free: 123.3 MB / 494.1 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 (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.007969/1.239, allocations: 2.488 MB / 0.6691 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.241, allocations: 322 kB / 0.6694 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0119/1.252, allocations: 5.378 MB / 0.6746 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.747e-05/1.253, allocations: 53.5 kB / 0.6747 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.611e-05/1.253, allocations: 7.031 kB / 0.6747 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/1.253, allocations: 11.14 kB / 0.6747 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02686/1.279, allocations: 13.36 MB / 0.6878 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.21e-05/1.28, allocations: 12 kB / 0.6878 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/1.281, allocations: 420.3 kB / 0.6882 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002578/1.284, allocations: 0.899 MB / 0.6891 GB, free: 114.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/1.284, allocations: 52 kB / 0.6891 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005087/1.289, allocations: 4.845 MB / 0.6938 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/1.289, allocations: 15.94 kB / 0.6939 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/1.3, allocations: 8.041 MB / 0.7017 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/1.301, allocations: 0.7288 MB / 0.7024 GB, free: 102.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008539/1.302, allocations: 51.84 kB / 0.7025 GB, free: 102.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/1.304, allocations: 153.9 kB / 0.7026 GB, free: 102 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/1.304, allocations: 167.2 kB / 0.7028 GB, free: 101.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/1.305, allocations: 78.42 kB / 0.7028 GB, free: 101.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004175/1.309, allocations: 2.024 MB / 0.7048 GB, free: 100.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.309, allocations: 0 / 0.7048 GB, free: 100.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006664/1.316, allocations: 1.108 MB / 0.7059 GB, free: 99.02 MB / 494.1 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 (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.01001/1.326, allocations: 8.714 MB / 0.7144 GB, free: 90.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01339/1.339, allocations: 9.717 MB / 0.7239 GB, free: 80.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/1.339, allocations: 0 / 0.7239 GB, free: 80.52 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/1.342, allocations: 2.261 MB / 0.7261 GB, free: 78.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/1.344, allocations: 443.8 kB / 0.7265 GB, free: 77.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08039/1.424, allocations: 55.33 MB / 0.7806 GB, free: 15.47 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005222/1.43, allocations: 3.828 MB / 0.7843 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004346/1.434, allocations: 2.185 MB / 0.7864 GB, free: 9.418 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003057/1.437, allocations: 2.202 MB / 0.7886 GB, free: 7.215 MB / 494.1 MB Notification: Performance of SimCode: time 1.874e-06/1.437, allocations: 0 / 0.7886 GB, free: 7.215 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3763/1.814, allocations: 70.87 MB / 0.8578 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/1.814, allocations: 211.5 kB / 0.858 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.619/5.433, allocations: 0 / 0.858 GB, free: 141.6 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches