Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.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.Cylindrical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Cylindrical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical",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.001128/0.001128, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001176/0.001176, allocations: 192 kB / 18.56 MB, free: 4.434 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2054/0.2054, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.61 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.01392/0.118, allocations: 13.54 MB / 482.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007922/0.126, allocations: 4.158 MB / 487.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.128, allocations: 67.88 kB / 487.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003551/0.1316, allocations: 1.822 MB / 489 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004308/0.136, allocations: 1.837 MB / 490.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1374, allocations: 0.5537 MB / 491.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004762/0.1422, allocations: 3.872 MB / 495.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003632/0.1459, allocations: 2.697 MB / 497.9 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002398/0.1483, allocations: 1.374 MB / 499.3 MB, free: 180 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.1511, allocations: 1.955 MB / 0.4895 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009383/0.152, allocations: 292 kB / 0.4898 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002548/0.1546, allocations: 1.006 MB / 0.4908 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.1568, allocations: 1.769 MB / 0.4925 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003244/0.1601, allocations: 2.131 MB / 0.4946 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006983/0.1671, allocations: 6.658 MB / 0.5011 GB, free: 2.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1671, allocations: 0 / 0.5011 GB, free: 2.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1671, allocations: 0 / 0.5011 GB, free: 2.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.1673, allocations: 0 / 0.5011 GB, free: 2.324 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: 1641 * Number of variables: 1641 Notification: Performance of Generate backend data structure: time 0.2096/0.3769, allocations: 4.551 MB / 0.5055 GB, free: 40.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.377, allocations: 12.03 kB / 0.5055 GB, free: 40.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001599/0.3786, allocations: 0.767 MB / 0.5063 GB, free: 40.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01179/0.3904, allocations: 3.121 MB / 0.5093 GB, free: 40.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005386/0.3958, allocations: 2.434 MB / 0.5117 GB, free: 39.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.3961, allocations: 214.7 kB / 0.5119 GB, free: 39.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.3971, allocations: 287.4 kB / 0.5122 GB, free: 39.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/0.4147, allocations: 11.11 MB / 0.523 GB, free: 34.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-05/0.4148, allocations: 30.92 kB / 0.5231 GB, free: 34.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004205/0.4153, allocations: 138.4 kB / 0.5232 GB, free: 34.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003773/0.419, allocations: 2.625 MB / 0.5257 GB, free: 33.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.4356, allocations: 10.38 MB / 0.5359 GB, free: 23.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04526/0.4809, allocations: 36.69 MB / 0.5717 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008822/0.4897, allocations: 4.571 MB / 0.5762 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003285/0.4931, allocations: 2.404 MB / 0.5785 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001246/0.4943, allocations: 1.321 MB / 0.5798 GB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.4944, allocations: 64.44 kB / 0.5799 GB, free: 9.031 MB / 414.1 MB Notification: Performance of pre-optimization done (n=242): time 5.17e-06/0.4944, allocations: 4 kB / 0.5799 GB, free: 9.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=254): time 0.04125/0.5357, allocations: 17.58 MB / 0.597 GB, free: 7.395 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.5358, allocations: 73.41 kB / 0.5971 GB, free: 7.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/0.5397, allocations: 2.746 MB / 0.5998 GB, free: 4.551 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003856/0.5401, allocations: 53.7 kB / 0.5999 GB, free: 4.492 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/0.5419, allocations: 2.778 MB / 0.6026 GB, free: 1.707 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.5431, allocations: 0.9198 MB / 0.6035 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002022/0.5451, allocations: 1.067 MB / 0.6045 GB, free: 15.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.5452, allocations: 301.1 kB / 0.6048 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003422/0.5486, allocations: 2.31 MB / 0.607 GB, free: 13.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006002/0.5547, allocations: 5.208 MB / 0.6121 GB, free: 6.484 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01125/0.5659, allocations: 8.251 MB / 0.6202 GB, free: 12.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.5661, allocations: 32 kB / 0.6202 GB, free: 12.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01613/0.5822, allocations: 8.273 MB / 0.6283 GB, free: 4.527 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.5824, allocations: 48 kB / 0.6283 GB, free: 4.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001459/0.5825, allocations: 104 kB / 0.6284 GB, free: 4.379 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/0.5853, allocations: 0.945 MB / 0.6294 GB, free: 3.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00399/0.5893, allocations: 1.217 MB / 0.6306 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006518/0.5959, allocations: 5.146 MB / 0.6356 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003401/0.5993, allocations: 303.4 kB / 0.6359 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009361/0.6003, allocations: 308 kB / 0.6362 GB, free: 12.36 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 35 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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],cylindrical.cylinderColor[3],cylindrical.cylinderColor[2],cylindrical.cylinderColor[1],cylindrical.revolute.cylinderColor[3],cylindrical.revolute.cylinderColor[2],cylindrical.revolute.cylinderColor[1],cylindrical.prismatic.boxColor[3],cylindrical.prismatic.boxColor[2],cylindrical.prismatic.boxColor[1],axis.color[3],axis.color[2],axis.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 (653): * Single equations (assignments): 646 * 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,10,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00396/0.6042, allocations: 2.147 MB / 0.6383 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000648/0.6049, allocations: 276.4 kB / 0.6385 GB, free: 9.922 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009419/0.6143, allocations: 5.129 MB / 0.6435 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.125e-05/0.6144, allocations: 51.98 kB / 0.6436 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.6145, allocations: 4 kB / 0.6436 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.499e-05/0.6145, allocations: 7.969 kB / 0.6436 GB, free: 4.707 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/0.6389, allocations: 11.91 MB / 0.6552 GB, free: 8.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.023e-05/0.639, allocations: 8 kB / 0.6552 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/0.6412, allocations: 395.4 kB / 0.6556 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002558/0.6438, allocations: 0.7776 MB / 0.6564 GB, free: 7.473 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004401/0.6442, allocations: 59.55 kB / 0.6564 GB, free: 7.418 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005737/0.65, allocations: 4.39 MB / 0.6607 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/0.65, allocations: 15.94 kB / 0.6607 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.6615, allocations: 7.617 MB / 0.6682 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006413/0.6622, allocations: 329.5 kB / 0.6685 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005973/0.6628, allocations: 51.03 kB / 0.6685 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.6644, allocations: 143.8 kB / 0.6687 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003815/0.6648, allocations: 156.9 kB / 0.6688 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/0.6649, allocations: 75.98 kB / 0.6689 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002387/0.6673, allocations: 1.697 MB / 0.6705 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6673, allocations: 0 / 0.6705 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003801/0.6711, allocations: 0.9839 MB / 0.6715 GB, free: 7.66 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 4 (cylindrical.s,cylindrical.phi,cylindrical.v,cylindrical.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 (196): * Single equations (assignments): 189 * 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 {(2,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.01158/0.6827, allocations: 8.284 MB / 0.6796 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01473/0.6975, allocations: 9.086 MB / 0.6885 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/0.6975, allocations: 0.5 kB / 0.6885 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003259/0.7008, allocations: 2.156 MB / 0.6906 GB, free: 4.004 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.7035, allocations: 398.7 kB / 0.691 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2644/0.968, allocations: 45.39 MB / 0.7353 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003107/0.9711, allocations: 3.368 MB / 0.7386 GB, free: 145.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003886/0.975, allocations: 1.989 MB / 0.7405 GB, free: 143.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/0.9769, allocations: 1.835 MB / 0.7423 GB, free: 142 MB / 0.5137 GB Notification: Performance of SimCode: time 1.112e-06/0.9769, allocations: 4 kB / 0.7423 GB, free: 142 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08687/1.064, allocations: 62.55 MB / 0.8034 GB, free: 79.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/12, allocations: 11.8 kB / 0.8034 GB, free: 79.83 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Cylindrical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Cylindrical/Cylindrical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches