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: translateModel(ModelicaTest.MultiBody.Joints.Cylindrical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cylindrical.phi|cylindrical.s|cylindrical.v|cylindrical.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical") translateModel(ModelicaTest.MultiBody.Joints.Cylindrical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cylindrical.phi|cylindrical.s|cylindrical.v|cylindrical.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009249/0.0009249, allocations: 100.1 kB / 18.01 MB, free: 5.734 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.001195/0.001195, allocations: 177.9 kB / 18.91 MB, free: 4.871 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.439/1.439, allocations: 223.3 MB / 242.9 MB, free: 14.5 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.219/0.219, allocations: 44.23 MB / 338.3 MB, free: 2.465 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003359, allocations: 8 kB / 411 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1191, allocations: 61.93 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.03751/0.1566, allocations: 36.84 MB / 0.4978 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02174/0.1784, allocations: 8.184 MB / 0.5058 GB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2651/0.4436, allocations: 151.1 kB / 0.5059 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.4457, allocations: 467.9 kB / 0.5064 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00634/0.4521, allocations: 1.728 MB / 0.5081 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001914/0.454, allocations: 0.5122 MB / 0.5086 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009792/0.4639, allocations: 5.413 MB / 0.5139 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007345/0.4712, allocations: 3.391 MB / 0.5172 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.4745, allocations: 1.064 MB / 0.5182 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004313/0.4788, allocations: 1.884 MB / 0.5201 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001269/0.4801, allocations: 148.1 kB / 0.5202 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003473/0.4836, allocations: 0.9233 MB / 0.5211 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003202/0.4868, allocations: 1.641 MB / 0.5227 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004469/0.4913, allocations: 1.967 MB / 0.5246 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006523/0.4979, allocations: 5.29 MB / 0.5298 GB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4979, allocations: 0 / 0.5298 GB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.4979, allocations: 0 / 0.5298 GB, free: 5.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002823/0.4982, allocations: 4 kB / 0.5298 GB, free: 5.543 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.008289/0.5065, allocations: 3.717 MB / 0.5334 GB, free: 3.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.5065, allocations: 13.75 kB / 0.5334 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.5173, allocations: 3.205 MB / 0.5366 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004699/0.5221, allocations: 2.134 MB / 0.5386 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/0.5223, allocations: 213.3 kB / 0.5388 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/0.5238, allocations: 286.5 kB / 0.5391 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02213/0.5459, allocations: 11.13 MB / 0.55 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.5461, allocations: 25.88 kB / 0.55 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.5471, allocations: 133.2 kB / 0.5501 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004846/0.552, allocations: 2.624 MB / 0.5527 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02084/0.5729, allocations: 10.39 MB / 0.5628 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05721/0.6301, allocations: 36.71 MB / 0.5987 GB, free: 4.227 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009349/0.6395, allocations: 4.572 MB / 0.6032 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003425/0.6429, allocations: 2.4 MB / 0.6055 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001247/0.6442, allocations: 1.319 MB / 0.6068 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.6443, allocations: 52.56 kB / 0.6068 GB, free: 11.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 4.459e-06/0.6443, allocations: 0 / 0.6068 GB, free: 11.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=254): time 0.04311/0.6874, allocations: 17.57 MB / 0.624 GB, free: 9.828 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.6875, allocations: 77.34 kB / 0.6241 GB, free: 9.742 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004631/0.6921, allocations: 2.735 MB / 0.6267 GB, free: 6.992 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004099/0.6926, allocations: 63.97 kB / 0.6268 GB, free: 6.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002028/0.6946, allocations: 2.774 MB / 0.6295 GB, free: 4.148 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.6958, allocations: 0.9196 MB / 0.6304 GB, free: 3.238 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.6969, allocations: 478.1 kB / 0.6309 GB, free: 2.766 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.697, allocations: 309.1 kB / 0.6312 GB, free: 2.461 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003862/0.7009, allocations: 2.31 MB / 0.6334 GB, free: 148 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006025/0.7069, allocations: 5.223 MB / 0.6385 GB, free: 9.551 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/0.7169, allocations: 8.272 MB / 0.6466 GB, free: 276 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.004e-05/0.7171, allocations: 28 kB / 0.6466 GB, free: 248 kB / 494.1 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.0157/0.7328, allocations: 8.297 MB / 0.6547 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.7329, allocations: 48 kB / 0.6548 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/0.7331, allocations: 100 kB / 0.6549 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/0.736, allocations: 0.9497 MB / 0.6558 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004202/0.7402, allocations: 1.22 MB / 0.657 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006535/0.7468, allocations: 4.785 MB / 0.6617 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003771/0.7506, allocations: 303.8 kB / 0.6619 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008935/0.7515, allocations: 308 kB / 0.6622 GB, free: 124 kB / 0.4981 GB 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 (657): * Single equations (assignments): 650 * 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.004506/0.756, allocations: 2.146 MB / 0.6643 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006264/0.7566, allocations: 276.3 kB / 0.6646 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009706/0.7664, allocations: 5.125 MB / 0.6696 GB, free: 8.535 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-05/0.7665, allocations: 51.45 kB / 0.6697 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.736e-05/0.7665, allocations: 4 kB / 0.6697 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.924e-05/0.7665, allocations: 11.95 kB / 0.6697 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02183/0.7883, allocations: 11.91 MB / 0.6813 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/0.7884, allocations: 12.25 kB / 0.6813 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.7901, allocations: 399.3 kB / 0.6817 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/0.7927, allocations: 0.7731 MB / 0.6824 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/0.793, allocations: 47.98 kB / 0.6825 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.7985, allocations: 4.086 MB / 0.6865 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.7986, allocations: 15.94 kB / 0.6865 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/0.8104, allocations: 7.637 MB / 0.694 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008186/0.8113, allocations: 325.6 kB / 0.6943 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006691/0.812, allocations: 47.98 kB / 0.6943 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.8136, allocations: 147.8 kB / 0.6945 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000439/0.8141, allocations: 167.9 kB / 0.6946 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/0.8143, allocations: 68 kB / 0.6947 GB, free: 14.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003178/0.8175, allocations: 1.693 MB / 0.6963 GB, free: 12.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8175, allocations: 0 / 0.6963 GB, free: 12.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004902/0.8224, allocations: 0.9879 MB / 0.6973 GB, free: 11.72 MB / 0.545 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.0006328/0.8231, allocations: 187.3 kB / 0.6975 GB, free: 11.53 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008966/0.832, allocations: 5.626 MB / 0.703 GB, free: 5.914 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.8321, allocations: 4 kB / 0.703 GB, free: 5.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003346/0.8354, allocations: 2.152 MB / 0.7051 GB, free: 3.746 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006105/0.8416, allocations: 384.5 kB / 0.7054 GB, free: 3.375 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2629/1.105, allocations: 12.98 MB / 0.7181 GB, free: 161.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006301/1.111, allocations: 3.379 MB / 0.7214 GB, free: 160.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.112, allocations: 258.5 kB / 0.7217 GB, free: 160.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.233e-06/1.112, allocations: 0 / 0.7217 GB, free: 160.5 MB / 0.545 GB Notification: Performance of Templates: time 0.09456/1.207, allocations: 74.55 MB / 0.7945 GB, free: 104.2 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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