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.001185/0.001185, allocations: 109.3 kB / 18.45 MB, free: 4.602 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.001017/0.001017, allocations: 183 kB / 19.38 MB, free: 3.684 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 / 243.1 MB, free: 15.04 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.203/0.203, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.336, allocations: 60.83 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01551/0.3516, allocations: 15.01 MB / 0.5342 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.3622, allocations: 4.403 MB / 0.5385 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003173/0.3654, allocations: 85.06 kB / 0.5386 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004623/0.37, allocations: 2.225 MB / 0.5408 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005351/0.3754, allocations: 2.017 MB / 0.5427 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.3771, allocations: 0.614 MB / 0.5433 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007094/0.3842, allocations: 4.287 MB / 0.5475 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004376/0.3886, allocations: 3.158 MB / 0.5506 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002961/0.3916, allocations: 1.604 MB / 0.5522 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003523/0.3952, allocations: 2.227 MB / 0.5544 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.3964, allocations: 340 kB / 0.5547 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00262/0.399, allocations: 1.053 MB / 0.5557 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002398/0.4014, allocations: 1.991 MB / 0.5577 GB, free: 4.906 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003628/0.4051, allocations: 2.399 MB / 0.56 GB, free: 2.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008794/0.4139, allocations: 7.802 MB / 0.5676 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.4139, allocations: 3.984 kB / 0.5676 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.414, allocations: 0 / 0.5676 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003005/0.4143, allocations: 0 / 0.5676 GB, free: 10.66 MB / 430.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.01327/0.4275, allocations: 5.095 MB / 0.5726 GB, free: 5.496 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4276, allocations: 8.031 kB / 0.5726 GB, free: 5.488 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0113/0.4389, allocations: 3.192 MB / 0.5757 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004915/0.4439, allocations: 2.409 MB / 0.5781 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.4441, allocations: 242.6 kB / 0.5783 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.4456, allocations: 335.6 kB / 0.5786 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02076/0.4664, allocations: 12.24 MB / 0.5906 GB, free: 2.484 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001699/0.4666, allocations: 31.66 kB / 0.5906 GB, free: 2.453 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001109/0.4677, allocations: 151.8 kB / 0.5908 GB, free: 2.305 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004895/0.4726, allocations: 2.855 MB / 0.5935 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.4937, allocations: 11.13 MB / 0.6044 GB, free: 4.301 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0574/0.5511, allocations: 40.51 MB / 0.644 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00946/0.5607, allocations: 4.683 MB / 0.6485 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/0.5641, allocations: 2.435 MB / 0.6509 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001206/0.5653, allocations: 1.311 MB / 0.6522 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.426e-05/0.5654, allocations: 56.5 kB / 0.6523 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 6.573e-06/0.5654, allocations: 4 kB / 0.6523 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04712/0.6126, allocations: 18.69 MB / 0.6705 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/0.6127, allocations: 77.41 kB / 0.6706 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005584/0.6183, allocations: 3.172 MB / 0.6737 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004388/0.6187, allocations: 61.7 kB / 0.6737 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002265/0.621, allocations: 3.117 MB / 0.6768 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00128/0.6223, allocations: 0.9713 MB / 0.6777 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002608/0.6249, allocations: 1.183 MB / 0.6789 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.625, allocations: 305.1 kB / 0.6792 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/0.6288, allocations: 2.467 MB / 0.6816 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006108/0.6349, allocations: 5.727 MB / 0.6872 GB, free: 12.17 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.6456, allocations: 8.984 MB / 0.696 GB, free: 1.586 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/0.6458, allocations: 32 kB / 0.696 GB, free: 1.555 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01677/0.6626, allocations: 9.012 MB / 0.7048 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.6627, allocations: 56 kB / 0.7048 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/0.6629, allocations: 112 kB / 0.7049 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.6661, allocations: 1.05 MB / 0.706 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00472/0.6709, allocations: 1.349 MB / 0.7073 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00758/0.6785, allocations: 5.552 MB / 0.7127 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/0.6827, allocations: 319.8 kB / 0.713 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/0.6838, allocations: 335.9 kB / 0.7133 GB, free: 15.63 MB / 0.5762 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.005229/0.6891, allocations: 2.421 MB / 0.7157 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/0.6901, allocations: 308 kB / 0.716 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/0.7008, allocations: 5.372 MB / 0.7212 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.473e-05/0.7009, allocations: 43.98 kB / 0.7213 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/0.7009, allocations: 4 kB / 0.7213 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.27e-05/0.701, allocations: 7.969 kB / 0.7213 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3294/1.03, allocations: 13.03 MB / 0.734 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/1.03, allocations: 13.86 kB / 0.734 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/1.032, allocations: 424.5 kB / 0.7344 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00274/1.035, allocations: 0.8906 MB / 0.7353 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002619/1.035, allocations: 53.94 kB / 0.7354 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006454/1.042, allocations: 4.831 MB / 0.7401 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-05/1.042, allocations: 21.84 kB / 0.7401 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/1.054, allocations: 8.015 MB / 0.7479 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009937/1.055, allocations: 363.7 kB / 0.7483 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007988/1.056, allocations: 50.25 kB / 0.7483 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.058, allocations: 157.2 kB / 0.7485 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004752/1.058, allocations: 168.2 kB / 0.7486 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.059, allocations: 76.33 kB / 0.7487 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0033/1.062, allocations: 1.957 MB / 0.7506 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.81e-07/1.062, allocations: 3.594 kB / 0.7506 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005418/1.067, allocations: 1.091 MB / 0.7517 GB, free: 172.3 MB / 0.5762 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.0006399/1.068, allocations: 196.9 kB / 0.7519 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008008/1.076, allocations: 6.052 MB / 0.7578 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.852e-05/1.076, allocations: 0 / 0.7578 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002743/1.079, allocations: 2.254 MB / 0.76 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.082, allocations: 453.9 kB / 0.7604 GB, free: 169 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/1.1, allocations: 11.76 MB / 0.7719 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004493/1.105, allocations: 3.712 MB / 0.7755 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/1.106, allocations: 283.4 kB / 0.7758 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of SimCode: time 7.71e-07/1.106, allocations: 0 / 0.7758 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.09271/1.198, allocations: 84.86 MB / 0.8587 GB, free: 69.32 MB / 0.5762 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