Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001264/0.001264, allocations: 179.8 kB / 16.41 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00078/0.00078, allocations: 88.92 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3719/0.3719, allocations: 43.57 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004065, allocations: 19.94 kB / 431.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1317, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.3655/0.4973, allocations: 34.64 MB / 0.5126 GB, free: 25.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0303/0.5276, allocations: 7.817 MB / 0.5202 GB, free: 20.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01099/0.5387, allocations: 159.6 kB / 0.5204 GB, free: 20.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008537/0.5473, allocations: 1.673 MB / 0.522 GB, free: 20.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02273/0.5701, allocations: 5.051 MB / 0.5269 GB, free: 17.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004797/0.5749, allocations: 476.4 kB / 0.5274 GB, free: 17.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01024/0.5852, allocations: 4.295 MB / 0.5316 GB, free: 16.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008527/0.5938, allocations: 3.053 MB / 0.5346 GB, free: 15.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004/0.5979, allocations: 1.158 MB / 0.5357 GB, free: 14.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005049/0.603, allocations: 1.874 MB / 0.5375 GB, free: 14.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001385/0.6044, allocations: 150.6 kB / 0.5377 GB, free: 14.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003882/0.6084, allocations: 0.77 MB / 0.5384 GB, free: 14.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004021/0.6124, allocations: 1.62 MB / 0.54 GB, free: 13.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.6148, allocations: 0.8385 MB / 0.5408 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.6267, allocations: 5.375 MB / 0.5461 GB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.6268, allocations: 0 / 0.5461 GB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.6268, allocations: 0 / 0.5461 GB, free: 10.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004344/0.6273, allocations: 1.094 kB / 0.5461 GB, free: 10.9 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1684 * Number of variables: 1684 Notification: Performance of Generate backend data structure: time 0.016/0.6433, allocations: 3.848 MB / 0.5498 GB, free: 8.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.6434, allocations: 8.875 kB / 0.5498 GB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02011/0.6635, allocations: 3.206 MB / 0.553 GB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.6756, allocations: 2.166 MB / 0.5551 GB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008247/0.6765, allocations: 221.1 kB / 0.5553 GB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003386/0.6799, allocations: 294.8 kB / 0.5556 GB, free: 4.945 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04094/0.7209, allocations: 11.32 MB / 0.5666 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002373/0.7212, allocations: 23.72 kB / 0.5666 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001921/0.7232, allocations: 139.8 kB / 0.5668 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009547/0.7328, allocations: 2.718 MB / 0.5694 GB, free: 8.895 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/0.7661, allocations: 10.44 MB / 0.5796 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06021/0.8263, allocations: 37.5 MB / 0.6163 GB, free: 7.992 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009106/0.8355, allocations: 4.567 MB / 0.6207 GB, free: 3.203 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003458/0.839, allocations: 2.392 MB / 0.623 GB, free: 0.8086 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/0.8402, allocations: 1.315 MB / 0.6243 GB, free: 15.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/0.8403, allocations: 60.55 kB / 0.6244 GB, free: 15.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=242): time 7.233e-06/0.8403, allocations: 0 / 0.6244 GB, free: 15.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=254): time 0.04097/0.8813, allocations: 17.57 MB / 0.6416 GB, free: 13.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.8814, allocations: 73.41 kB / 0.6416 GB, free: 13.47 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005687/0.8871, allocations: 2.773 MB / 0.6443 GB, free: 10.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003419/0.8875, allocations: 57.7 kB / 0.6444 GB, free: 10.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.89, allocations: 2.853 MB / 0.6472 GB, free: 7.734 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.8913, allocations: 0.9173 MB / 0.6481 GB, free: 6.805 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004146/0.8917, allocations: 108 kB / 0.6482 GB, free: 6.699 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005205/0.8922, allocations: 0.5493 MB / 0.6487 GB, free: 6.145 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/0.8966, allocations: 2.306 MB / 0.651 GB, free: 3.832 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006568/0.9032, allocations: 5.288 MB / 0.6561 GB, free: 13.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005843/0.909, allocations: 3.493 MB / 0.6595 GB, free: 9.586 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.894e-05/0.9091, allocations: 28 kB / 0.6596 GB, free: 9.559 MB / 490.7 MB Notification: Performance of matching and sorting (n=730) (initialization): time 0.01518/0.9243, allocations: 8.348 MB / 0.6677 GB, free: 1.203 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.332e-05/0.9245, allocations: 48 kB / 0.6678 GB, free: 1.156 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001536/0.9246, allocations: 104 kB / 0.6679 GB, free: 1.055 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00275/0.9274, allocations: 0.9492 MB / 0.6688 GB, free: 104 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004206/0.9316, allocations: 1.244 MB / 0.67 GB, free: 14.86 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006367/0.938, allocations: 4.819 MB / 0.6747 GB, free: 9.898 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004136/0.9421, allocations: 303.8 kB / 0.675 GB, free: 9.602 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008741/0.943, allocations: 312 kB / 0.6753 GB, free: 9.297 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 33 (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 (669): * Single equations (assignments): 662 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004837/0.9479, allocations: 2.189 MB / 0.6774 GB, free: 7.098 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006636/0.9485, allocations: 276.3 kB / 0.6777 GB, free: 6.824 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00919/0.9577, allocations: 5.129 MB / 0.6827 GB, free: 1.664 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.771e-05/0.9579, allocations: 47.98 kB / 0.6827 GB, free: 1.617 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.9579, allocations: 4 kB / 0.6828 GB, free: 1.613 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.9579, allocations: 11.95 kB / 0.6828 GB, free: 1.602 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.258/1.216, allocations: 11.93 MB / 0.6944 GB, free: 150.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.126e-05/1.216, allocations: 11.81 kB / 0.6944 GB, free: 150.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/1.218, allocations: 395.8 kB / 0.6948 GB, free: 150.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/1.22, allocations: 0.7817 MB / 0.6956 GB, free: 150.1 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002069/1.22, allocations: 48.92 kB / 0.6956 GB, free: 150.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00495/1.225, allocations: 4.092 MB / 0.6996 GB, free: 148 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.225, allocations: 13.53 kB / 0.6996 GB, free: 148 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/1.236, allocations: 7.599 MB / 0.707 GB, free: 145.2 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/1.238, allocations: 0.686 MB / 0.7077 GB, free: 145 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000452/1.238, allocations: 50.75 kB / 0.7078 GB, free: 144.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/1.239, allocations: 147 kB / 0.7079 GB, free: 144.9 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/1.24, allocations: 158.6 kB / 0.7081 GB, free: 144.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/1.24, allocations: 70.62 kB / 0.7081 GB, free: 144.9 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003118/1.243, allocations: 1.694 MB / 0.7098 GB, free: 144.3 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2e-07/1.243, allocations: 2.719 kB / 0.7098 GB, free: 144.3 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.005356/1.248, allocations: 1.002 MB / 0.7108 GB, free: 144.2 MB / 0.4949 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005412/1.249, allocations: 190.6 kB / 0.7109 GB, free: 144 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008423/1.257, allocations: 5.621 MB / 0.7164 GB, free: 142.1 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/1.257, allocations: 1.75 kB / 0.7164 GB, free: 142.1 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003825/1.261, allocations: 2.147 MB / 0.7185 GB, free: 141.4 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/1.264, allocations: 378.2 kB / 0.7189 GB, free: 141.2 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02043/1.284, allocations: 12.77 MB / 0.7314 GB, free: 134.6 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004083/1.289, allocations: 3.44 MB / 0.7347 GB, free: 133.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/1.29, allocations: 261.2 kB / 0.735 GB, free: 133.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.794e-06/1.29, allocations: 2 kB / 0.735 GB, free: 133.2 MB / 0.4949 GB Notification: Performance of Templates: time 0.0912/1.381, allocations: 75.93 MB / 0.8091 GB, free: 63.7 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Cylindrical/Cylindrical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches