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.001544/0.001544, allocations: 105.5 kB / 16.4 MB, free: 6.445 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.001839/0.001839, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.489/1.489, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2187/0.2187, allocations: 43.54 MB / 314.1 MB, free: 440 kB / 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.001747/0.001747, allocations: 65.47 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1219, allocations: 57.8 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01693/0.1389, allocations: 15.74 MB / 0.5028 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.1498, allocations: 4.506 MB / 0.5072 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003087/0.1529, allocations: 79.81 kB / 0.5072 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005106/0.158, allocations: 2.25 MB / 0.5094 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005697/0.1639, allocations: 2.066 MB / 0.5115 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001986/0.1659, allocations: 0.6278 MB / 0.5121 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006651/0.1726, allocations: 4.455 MB / 0.5164 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005424/0.1781, allocations: 3.224 MB / 0.5196 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003485/0.1816, allocations: 1.666 MB / 0.5212 GB, free: 9.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00402/0.1857, allocations: 2.285 MB / 0.5234 GB, free: 7.195 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001416/0.1871, allocations: 348 kB / 0.5238 GB, free: 6.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003215/0.1904, allocations: 1.038 MB / 0.5248 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003164/0.1936, allocations: 2.061 MB / 0.5268 GB, free: 3.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004905/0.1986, allocations: 2.5 MB / 0.5292 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2518/0.4504, allocations: 8.053 MB / 0.5371 GB, free: 10.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4504, allocations: 0 / 0.5371 GB, free: 10.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4504, allocations: 2.062 kB / 0.5371 GB, free: 10.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002953/0.4507, allocations: 0 / 0.5371 GB, free: 10.17 MB / 414.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.01494/0.4657, allocations: 5.286 MB / 0.5423 GB, free: 8.051 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4658, allocations: 15.39 kB / 0.5423 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002711/0.4685, allocations: 0.8876 MB / 0.5431 GB, free: 7.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01262/0.4811, allocations: 3.205 MB / 0.5463 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008743/0.4899, allocations: 2.88 MB / 0.5491 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003678/0.4903, allocations: 260.2 kB / 0.5493 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/0.4925, allocations: 351.1 kB / 0.5497 GB, free: 7.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02898/0.5215, allocations: 12.65 MB / 0.562 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003/0.5218, allocations: 43.7 kB / 0.5621 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/0.5239, allocations: 158.2 kB / 0.5622 GB, free: 3.297 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005172/0.5291, allocations: 3.022 MB / 0.5652 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02517/0.5543, allocations: 11.34 MB / 0.5762 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07073/0.6251, allocations: 42.11 MB / 0.6174 GB, free: 312 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.6358, allocations: 4.702 MB / 0.622 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003862/0.6397, allocations: 2.44 MB / 0.6243 GB, free: 8.934 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001348/0.6411, allocations: 1.314 MB / 0.6256 GB, free: 7.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.52e-05/0.6412, allocations: 56.31 kB / 0.6257 GB, free: 7.348 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 8.245e-06/0.6412, allocations: 4 kB / 0.6257 GB, free: 7.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05316/0.6943, allocations: 19.55 MB / 0.6448 GB, free: 3.691 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.6945, allocations: 103.1 kB / 0.6449 GB, free: 3.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006422/0.7009, allocations: 3.284 MB / 0.6481 GB, free: 288 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005807/0.7015, allocations: 57.7 kB / 0.6481 GB, free: 224 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002748/0.7043, allocations: 3.292 MB / 0.6513 GB, free: 13 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001486/0.7058, allocations: 0.9793 MB / 0.6523 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003868/0.7097, allocations: 1.21 MB / 0.6535 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.7098, allocations: 301.1 kB / 0.6538 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004597/0.7144, allocations: 2.487 MB / 0.6562 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007136/0.7216, allocations: 5.887 MB / 0.6619 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.7333, allocations: 9.178 MB / 0.6709 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.7335, allocations: 36 kB / 0.6709 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01928/0.7527, allocations: 9.153 MB / 0.6799 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.7529, allocations: 57 kB / 0.6799 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001793/0.7531, allocations: 116 kB / 0.68 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003254/0.7564, allocations: 1.062 MB / 0.6811 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004768/0.7612, allocations: 1.388 MB / 0.6824 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007555/0.7688, allocations: 5.557 MB / 0.6879 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/0.7736, allocations: 327.7 kB / 0.6882 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/0.7751, allocations: 348 kB / 0.6885 GB, free: 4.5 MB / 0.5294 GB 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.006835/0.782, allocations: 2.484 MB / 0.6909 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.7831, allocations: 319.8 kB / 0.6912 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/0.7955, allocations: 5.377 MB / 0.6965 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/0.7957, allocations: 54.61 kB / 0.6965 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.7957, allocations: 4 kB / 0.6965 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-05/0.7958, allocations: 16.05 kB / 0.6966 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03297/0.8288, allocations: 13.32 MB / 0.7096 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.904e-05/0.8289, allocations: 12 kB / 0.7096 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/0.8312, allocations: 428.8 kB / 0.71 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003177/0.8344, allocations: 0.8906 MB / 0.7109 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006647/0.8351, allocations: 55.98 kB / 0.7109 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007154/0.8423, allocations: 4.833 MB / 0.7156 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.759e-05/0.8423, allocations: 23.78 kB / 0.7157 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/0.8584, allocations: 8.033 MB / 0.7235 GB, free: 56 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/0.8614, allocations: 0.735 MB / 0.7242 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/0.8628, allocations: 52 kB / 0.7243 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002657/0.8655, allocations: 151.8 kB / 0.7244 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009401/0.8665, allocations: 173.5 kB / 0.7246 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005572/0.867, allocations: 75.2 kB / 0.7247 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004954/0.872, allocations: 2.026 MB / 0.7266 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.71e-07/0.8721, allocations: 0 / 0.7266 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007849/0.8799, allocations: 1.109 MB / 0.7277 GB, free: 11.73 MB / 0.5762 GB 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.01649/0.8964, allocations: 8.706 MB / 0.7362 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01195/0.9084, allocations: 6.109 MB / 0.7422 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.86e-05/0.9085, allocations: 0 / 0.7422 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004346/0.9129, allocations: 2.266 MB / 0.7444 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004954/0.9179, allocations: 440.4 kB / 0.7448 GB, free: 10 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3049/1.223, allocations: 48.19 MB / 0.7919 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004939/1.228, allocations: 3.833 MB / 0.7956 GB, free: 191 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00436/1.232, allocations: 2.184 MB / 0.7978 GB, free: 189.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002955/1.235, allocations: 2.202 MB / 0.7999 GB, free: 187.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.352e-06/1.235, allocations: 0 / 0.7999 GB, free: 187.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/1.347, allocations: 68.71 MB / 0.867 GB, free: 119 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.84/29.19, allocations: 19.69 kB / 0.867 GB, free: 119 MB / 0.5919 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches