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.001278/0.001278, allocations: 106.9 kB / 17.33 MB, free: 5.984 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.001238/0.001238, allocations: 193.3 kB / 18.25 MB, free: 5.074 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 / 241.9 MB, free: 15.43 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.2283/0.2283, allocations: 44.18 MB / 336.2 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 68.42 kB / 407.9 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1262, allocations: 60.83 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04703/0.1733, allocations: 46.38 MB / 0.503 GB, free: 188 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3184/0.4918, allocations: 9.55 MB / 0.5123 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01017/0.502, allocations: 191.2 kB / 0.5125 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004735/0.5067, allocations: 2.128 MB / 0.5146 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005957/0.5128, allocations: 1.878 MB / 0.5164 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.5143, allocations: 0.5751 MB / 0.517 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006091/0.5205, allocations: 4.305 MB / 0.5212 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004226/0.5247, allocations: 3.289 MB / 0.5244 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.5277, allocations: 1.607 MB / 0.526 GB, free: 6.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003354/0.5311, allocations: 2.428 MB / 0.5284 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007414/0.5318, allocations: 340.9 kB / 0.5287 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.5341, allocations: 1.068 MB / 0.5297 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00166/0.5357, allocations: 2.016 MB / 0.5317 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002388/0.5381, allocations: 2.417 MB / 0.5341 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008207/0.5464, allocations: 7.532 MB / 0.5414 GB, free: 12.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.5464, allocations: 0 / 0.5414 GB, free: 12.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5464, allocations: 0 / 0.5414 GB, free: 12.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000316/0.5467, allocations: 0 / 0.5414 GB, free: 12.59 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.0106/0.5573, allocations: 5.097 MB / 0.5464 GB, free: 8.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.5574, allocations: 16.03 kB / 0.5464 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/0.5683, allocations: 3.187 MB / 0.5495 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005322/0.5737, allocations: 2.367 MB / 0.5518 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.5739, allocations: 253.5 kB / 0.5521 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009604/0.5748, allocations: 329 kB / 0.5524 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01996/0.5948, allocations: 12.24 MB / 0.5643 GB, free: 5.371 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.595, allocations: 31.75 kB / 0.5644 GB, free: 5.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000494/0.5955, allocations: 159.2 kB / 0.5645 GB, free: 5.234 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00451/0.6, allocations: 2.844 MB / 0.5673 GB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02236/0.6224, allocations: 11.13 MB / 0.5782 GB, free: 7.258 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05841/0.6808, allocations: 40.71 MB / 0.6179 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009127/0.69, allocations: 4.691 MB / 0.6225 GB, free: 8.824 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003426/0.6934, allocations: 2.428 MB / 0.6249 GB, free: 6.395 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001246/0.6947, allocations: 1.315 MB / 0.6262 GB, free: 4.867 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/0.6948, allocations: 56.55 kB / 0.6262 GB, free: 4.805 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 5.881e-06/0.6948, allocations: 4 kB / 0.6262 GB, free: 4.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04592/0.7407, allocations: 18.69 MB / 0.6445 GB, free: 1.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.7408, allocations: 73.41 kB / 0.6445 GB, free: 1.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/0.7475, allocations: 3.168 MB / 0.6476 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006282/0.7481, allocations: 61.7 kB / 0.6477 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003668/0.7518, allocations: 3.111 MB / 0.6507 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001851/0.7537, allocations: 0.9793 MB / 0.6517 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00364/0.7573, allocations: 1.18 MB / 0.6528 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.7575, allocations: 301.1 kB / 0.6531 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006159/0.7637, allocations: 2.475 MB / 0.6555 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009623/0.7733, allocations: 5.731 MB / 0.6611 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01628/0.7897, allocations: 8.984 MB / 0.6699 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001371/0.7898, allocations: 32 kB / 0.6699 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02463/0.8145, allocations: 9 MB / 0.6787 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.8146, allocations: 55.98 kB / 0.6788 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001903/0.8148, allocations: 112 kB / 0.6789 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.818, allocations: 1.051 MB / 0.6799 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004829/0.8229, allocations: 1.353 MB / 0.6812 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008701/0.8316, allocations: 5.542 MB / 0.6866 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00513/0.8368, allocations: 323.9 kB / 0.687 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/0.8381, allocations: 343.9 kB / 0.6873 GB, free: 2.73 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.006026/0.8442, allocations: 2.416 MB / 0.6896 GB, free: 312 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008519/0.8451, allocations: 315.9 kB / 0.6899 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009569/0.8546, allocations: 5.371 MB / 0.6952 GB, free: 10.56 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-05/0.8547, allocations: 44 kB / 0.6952 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.8548, allocations: 4 kB / 0.6952 GB, free: 10.51 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.8548, allocations: 11.95 kB / 0.6952 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2466/1.101, allocations: 13.07 MB / 0.708 GB, free: 199.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.947e-05/1.101, allocations: 11.41 kB / 0.708 GB, free: 199.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.104, allocations: 420.1 kB / 0.7084 GB, free: 199.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003021/1.107, allocations: 0.9 MB / 0.7093 GB, free: 199.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004439/1.107, allocations: 54.16 kB / 0.7094 GB, free: 199.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00692/1.114, allocations: 4.831 MB / 0.7141 GB, free: 197.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.544e-05/1.114, allocations: 19.86 kB / 0.7141 GB, free: 197.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/1.128, allocations: 8.022 MB / 0.7219 GB, free: 194.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009015/1.129, allocations: 366.8 kB / 0.7223 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005134/1.129, allocations: 51.42 kB / 0.7223 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.13, allocations: 147.2 kB / 0.7225 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004365/1.131, allocations: 170.1 kB / 0.7226 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/1.131, allocations: 82.61 kB / 0.7227 GB, free: 194.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002779/1.134, allocations: 1.958 MB / 0.7246 GB, free: 193.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.134, allocations: 0 / 0.7246 GB, free: 193.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005021/1.139, allocations: 1.087 MB / 0.7257 GB, free: 193.5 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.0004687/1.139, allocations: 197.2 kB / 0.7259 GB, free: 193.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01364/1.153, allocations: 9.649 MB / 0.7353 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.708e-05/1.153, allocations: 3.906 kB / 0.7353 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002694/1.156, allocations: 2.254 MB / 0.7375 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/1.159, allocations: 455.2 kB / 0.7379 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/1.181, allocations: 13.81 MB / 0.7514 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004151/1.185, allocations: 3.705 MB / 0.755 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004644/1.19, allocations: 2.155 MB / 0.7571 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007774/1.191, allocations: 239.4 kB / 0.7574 GB, free: 173.5 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.191, allocations: 0 / 0.7574 GB, free: 173.5 MB / 0.545 GB Notification: Performance of Templates: time 0.0637/1.254, allocations: 37.32 MB / 0.7938 GB, free: 136.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins/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