Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001496/0.001496, allocations: 194 kB / 18.77 MB, free: 4.742 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.379/1.379, allocations: 222.9 MB / 242.5 MB, free: 13.76 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.2077/0.2077, allocations: 44.17 MB / 336.8 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 63.53 kB / 408.4 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 60.83 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0466/0.1555, allocations: 46.38 MB / 0.5035 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2622/0.4177, allocations: 9.636 MB / 0.5129 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0113/0.4291, allocations: 193.6 kB / 0.5131 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005196/0.4343, allocations: 2.187 MB / 0.5152 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005669/0.4401, allocations: 1.89 MB / 0.5171 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.4418, allocations: 0.5602 MB / 0.5176 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008358/0.4502, allocations: 6.005 MB / 0.5235 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00518/0.4554, allocations: 3.076 MB / 0.5265 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.4584, allocations: 1.397 MB / 0.5278 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004222/0.4626, allocations: 2.322 MB / 0.5301 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001392/0.4641, allocations: 241.8 kB / 0.5303 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003366/0.4675, allocations: 1.005 MB / 0.5313 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002458/0.4699, allocations: 1.918 MB / 0.5332 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002775/0.4727, allocations: 2.318 MB / 0.5355 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005835/0.4786, allocations: 6.09 MB / 0.5414 GB, free: 13.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.4786, allocations: 0 / 0.5414 GB, free: 13.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4786, allocations: 6.781 kB / 0.5414 GB, free: 13.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001882/0.4788, allocations: 0 / 0.5414 GB, free: 13.09 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.009542/0.4884, allocations: 5.087 MB / 0.5464 GB, free: 8.359 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.4884, allocations: 20.02 kB / 0.5464 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01086/0.4993, allocations: 3.186 MB / 0.5495 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005223/0.5046, allocations: 2.365 MB / 0.5518 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.5048, allocations: 253 kB / 0.5521 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.5059, allocations: 333.5 kB / 0.5524 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0208/0.5267, allocations: 12.23 MB / 0.5643 GB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.5269, allocations: 35.75 kB / 0.5644 GB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/0.528, allocations: 156 kB / 0.5645 GB, free: 5.523 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005479/0.5335, allocations: 2.843 MB / 0.5673 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02575/0.5593, allocations: 11.13 MB / 0.5782 GB, free: 7.547 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09418/0.6535, allocations: 40.71 MB / 0.6179 GB, free: 14.03 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01391/0.6675, allocations: 4.689 MB / 0.6225 GB, free: 9.117 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004334/0.6719, allocations: 2.431 MB / 0.6249 GB, free: 6.688 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001655/0.6736, allocations: 1.32 MB / 0.6261 GB, free: 5.156 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.91e-05/0.6737, allocations: 56.55 kB / 0.6262 GB, free: 5.094 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 1.209e-05/0.6737, allocations: 4 kB / 0.6262 GB, free: 5.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.07127/0.745, allocations: 18.68 MB / 0.6444 GB, free: 2.277 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.7452, allocations: 73.41 kB / 0.6445 GB, free: 2.195 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008333/0.7535, allocations: 3.176 MB / 0.6476 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000874/0.7545, allocations: 61.7 kB / 0.6477 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003774/0.7583, allocations: 3.117 MB / 0.6507 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002551/0.7609, allocations: 0.9715 MB / 0.6517 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005959/0.7669, allocations: 1.178 MB / 0.6528 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.7671, allocations: 305.1 kB / 0.6531 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006779/0.7739, allocations: 2.467 MB / 0.6555 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/0.7851, allocations: 5.735 MB / 0.6611 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01978/0.805, allocations: 8.984 MB / 0.6699 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/0.8052, allocations: 32 kB / 0.6699 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02709/0.8323, allocations: 9.003 MB / 0.6787 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002578/0.8326, allocations: 52 kB / 0.6788 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000282/0.8329, allocations: 120 kB / 0.6789 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005945/0.8389, allocations: 1.05 MB / 0.6799 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009114/0.8481, allocations: 1.353 MB / 0.6812 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/0.8612, allocations: 5.147 MB / 0.6863 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00928/0.8705, allocations: 319.9 kB / 0.6866 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/0.8728, allocations: 343.2 kB / 0.6869 GB, free: 3.422 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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 (729): * Single equations (assignments): 722 * 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.008141/0.8809, allocations: 2.409 MB / 0.6892 GB, free: 1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/0.8824, allocations: 315.9 kB / 0.6895 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/0.8979, allocations: 5.374 MB / 0.6948 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.8981, allocations: 47.94 kB / 0.6948 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.262e-05/0.8981, allocations: 4 kB / 0.6948 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.783e-05/0.8982, allocations: 11.95 kB / 0.6948 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4708/1.369, allocations: 13.07 MB / 0.7076 GB, free: 198.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.576e-05/1.369, allocations: 12.25 kB / 0.7076 GB, free: 198.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003398/1.373, allocations: 423.4 kB / 0.708 GB, free: 198.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003996/1.377, allocations: 0.893 MB / 0.7089 GB, free: 198.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000847/1.377, allocations: 54.53 kB / 0.7089 GB, free: 198.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/1.388, allocations: 4.501 MB / 0.7133 GB, free: 197.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.659e-05/1.388, allocations: 19.5 kB / 0.7134 GB, free: 197.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.026/1.414, allocations: 8.017 MB / 0.7212 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.415, allocations: 365.5 kB / 0.7215 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001903/1.417, allocations: 58.19 kB / 0.7216 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003535/1.421, allocations: 143.2 kB / 0.7217 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/1.422, allocations: 175.4 kB / 0.7219 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006561/1.423, allocations: 76.56 kB / 0.722 GB, free: 194.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006181/1.429, allocations: 1.962 MB / 0.7239 GB, free: 193.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.61e-07/1.429, allocations: 0 / 0.7239 GB, free: 193.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00989/1.439, allocations: 1.089 MB / 0.725 GB, free: 193.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (208): * Single equations (assignments): 201 * 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.001218/1.44, allocations: 198.1 kB / 0.7251 GB, free: 193.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01549/1.456, allocations: 6 MB / 0.731 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-05/1.456, allocations: 0 / 0.731 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006101/1.462, allocations: 2.255 MB / 0.7332 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005443/1.467, allocations: 430 kB / 0.7336 GB, free: 190.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03897/1.506, allocations: 14.34 MB / 0.7476 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009528/1.516, allocations: 3.709 MB / 0.7512 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002409/1.518, allocations: 285.9 kB / 0.7515 GB, free: 178.9 MB / 0.545 GB Notification: Performance of SimCode: time 2.064e-06/1.518, allocations: 0 / 0.7515 GB, free: 178.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1466/1.665, allocations: 84.22 MB / 0.8338 GB, free: 95.46 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches