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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 101 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3621/0.3621, allocations: 44.13 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 55.92 kB / 457.7 MB, free: 2.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3667, allocations: 60.79 MB / 0.5064 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0348/0.4016, allocations: 46.39 MB / 0.5517 GB, free: 5.035 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02296/0.4246, allocations: 9.645 MB / 0.5611 GB, free: 14.63 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01074/0.4354, allocations: 195.9 kB / 0.5613 GB, free: 14.6 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004625/0.4401, allocations: 2.185 MB / 0.5634 GB, free: 13.62 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005042/0.4452, allocations: 1.876 MB / 0.5653 GB, free: 12.84 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.4468, allocations: 0.5683 MB / 0.5658 GB, free: 12.61 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008488/0.4553, allocations: 6.039 MB / 0.5717 GB, free: 10.76 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006404/0.4617, allocations: 3.065 MB / 0.5747 GB, free: 9.613 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002849/0.4646, allocations: 1.401 MB / 0.5761 GB, free: 8.512 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003099/0.4677, allocations: 2.341 MB / 0.5784 GB, free: 6.242 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006296/0.4684, allocations: 240 kB / 0.5786 GB, free: 6.008 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.4705, allocations: 1.01 MB / 0.5796 GB, free: 4.996 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001943/0.4725, allocations: 1.909 MB / 0.5814 GB, free: 3.082 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002697/0.4752, allocations: 2.313 MB / 0.5837 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007648/0.4829, allocations: 7.398 MB / 0.5909 GB, free: 9.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4829, allocations: 0 / 0.5909 GB, free: 9.332 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4829, allocations: 0 / 0.5909 GB, free: 9.332 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001971/0.4831, allocations: 0 / 0.5909 GB, free: 9.332 MB / 410.7 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.01027/0.4934, allocations: 5.088 MB / 0.5959 GB, free: 4.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.4934, allocations: 11.97 kB / 0.5959 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.5038, allocations: 3.196 MB / 0.599 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006339/0.5102, allocations: 2.37 MB / 0.6013 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.5104, allocations: 250.6 kB / 0.6016 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007452/0.5111, allocations: 331.6 kB / 0.6019 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01804/0.5292, allocations: 12.24 MB / 0.6138 GB, free: 1.199 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.5293, allocations: 31.66 kB / 0.6139 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004102/0.5297, allocations: 155.8 kB / 0.614 GB, free: 1.016 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004299/0.534, allocations: 2.844 MB / 0.6168 GB, free: 14.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.5535, allocations: 11.13 MB / 0.6277 GB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05814/0.6117, allocations: 40.71 MB / 0.6674 GB, free: 9.262 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008771/0.6205, allocations: 4.683 MB / 0.672 GB, free: 4.355 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/0.6237, allocations: 2.434 MB / 0.6744 GB, free: 1.922 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001206/0.6249, allocations: 1.323 MB / 0.6757 GB, free: 384 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.625, allocations: 52.56 kB / 0.6757 GB, free: 324 kB / 490.7 MB Notification: Performance of pre-optimization done (n=249): time 6.562e-06/0.625, allocations: 4 kB / 0.6757 GB, free: 320 kB / 490.7 MB Notification: Performance of matching and sorting (n=267): time 0.3054/0.9304, allocations: 18.67 MB / 0.694 GB, free: 125.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.9305, allocations: 75.28 kB / 0.694 GB, free: 125.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004313/0.9348, allocations: 3.178 MB / 0.6971 GB, free: 124.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002931/0.9351, allocations: 62.05 kB / 0.6972 GB, free: 124.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.9368, allocations: 3.111 MB / 0.7002 GB, free: 121.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009354/0.9377, allocations: 0.9702 MB / 0.7012 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001694/0.9394, allocations: 1.187 MB / 0.7023 GB, free: 120.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.274e-05/0.9395, allocations: 305.9 kB / 0.7026 GB, free: 120.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004105/0.9436, allocations: 2.477 MB / 0.705 GB, free: 119.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005555/0.9492, allocations: 5.733 MB / 0.7106 GB, free: 114.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/0.9592, allocations: 8.98 MB / 0.7194 GB, free: 107.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001365/0.9594, allocations: 35.69 kB / 0.7194 GB, free: 107.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.0155/0.9749, allocations: 8.993 MB / 0.7282 GB, free: 104.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.215e-05/0.975, allocations: 56.16 kB / 0.7283 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/0.9751, allocations: 116.1 kB / 0.7284 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003187/0.9783, allocations: 1.055 MB / 0.7294 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004346/0.9827, allocations: 1.347 MB / 0.7307 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006106/0.9888, allocations: 5.143 MB / 0.7358 GB, free: 99.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/0.9934, allocations: 327.6 kB / 0.7361 GB, free: 99.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007865/0.9942, allocations: 343.2 kB / 0.7364 GB, free: 98.9 MB / 490.7 MB 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.004759/0.999, allocations: 2.406 MB / 0.7387 GB, free: 96.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006302/0.9996, allocations: 319.7 kB / 0.7391 GB, free: 96.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007925/1.008, allocations: 5.368 MB / 0.7443 GB, free: 92.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.838e-05/1.008, allocations: 44 kB / 0.7443 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/1.008, allocations: 7.922 kB / 0.7443 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.008, allocations: 15.5 kB / 0.7444 GB, free: 92.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01838/1.026, allocations: 13.06 MB / 0.7571 GB, free: 80.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/1.026, allocations: 12 kB / 0.7571 GB, free: 80.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/1.028, allocations: 423.3 kB / 0.7575 GB, free: 79.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002491/1.03, allocations: 0.8866 MB / 0.7584 GB, free: 78.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/1.03, allocations: 55.98 kB / 0.7585 GB, free: 78.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004784/1.035, allocations: 4.503 MB / 0.7629 GB, free: 74.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/1.035, allocations: 15.94 kB / 0.7629 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07127/1.106, allocations: 31.03 MB / 0.7932 GB, free: 42.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008006/1.107, allocations: 364.9 kB / 0.7935 GB, free: 42.31 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005718/1.108, allocations: 52 kB / 0.7936 GB, free: 42.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002204/1.11, allocations: 147.8 kB / 0.7937 GB, free: 42.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005537/1.111, allocations: 177.4 kB / 0.7939 GB, free: 41.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002572/1.111, allocations: 75.44 kB / 0.7939 GB, free: 41.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003667/1.115, allocations: 1.961 MB / 0.7959 GB, free: 39.91 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.115, allocations: 0 / 0.7959 GB, free: 39.91 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007901/1.123, allocations: 1.319 MB / 0.7971 GB, free: 38.6 MB / 490.7 MB 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.0005508/1.123, allocations: 199.7 kB / 0.7973 GB, free: 38.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.135, allocations: 5.995 MB / 0.8032 GB, free: 32.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.135, allocations: 0 / 0.8032 GB, free: 32.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003418/1.139, allocations: 2.254 MB / 0.8054 GB, free: 30.15 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/1.141, allocations: 444.8 kB / 0.8058 GB, free: 29.72 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/1.158, allocations: 15.61 MB / 0.8211 GB, free: 13.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003255/1.161, allocations: 3.79 MB / 0.8248 GB, free: 10.09 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004255/1.165, allocations: 2.161 MB / 0.8269 GB, free: 7.922 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00068/1.166, allocations: 243.4 kB / 0.8271 GB, free: 7.688 MB / 490.7 MB Notification: Performance of SimCode: time 8.92e-07/1.166, allocations: 0 / 0.8271 GB, free: 7.688 MB / 490.7 MB Notification: Performance of Templates: time 0.06879/1.235, allocations: 41.98 MB / 0.8681 GB, free: 13.91 MB / 0.5261 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches