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.001456/0.001456, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001796/0.001796, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.409/1.409, allocations: 222.9 MB / 243 MB, free: 15.16 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.2103/0.2103, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 65.06 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1175, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01734/0.1349, allocations: 15 MB / 485.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.1454, allocations: 4.419 MB / 490.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.1484, allocations: 75.88 kB / 490.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00515/0.1536, allocations: 2.227 MB / 492.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006182/0.1598, allocations: 2.012 MB / 494.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.1618, allocations: 0.6161 MB / 495 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00648/0.1683, allocations: 4.29 MB / 499.3 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004733/0.1731, allocations: 3.15 MB / 0.4907 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.176, allocations: 1.581 MB / 0.4923 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003739/0.1797, allocations: 2.231 MB / 0.4944 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.1811, allocations: 340 kB / 0.4948 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002856/0.184, allocations: 1.049 MB / 0.4958 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002885/0.1869, allocations: 1.991 MB / 0.4977 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003508/0.1904, allocations: 2.403 MB / 0.5001 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2841/0.4745, allocations: 7.797 MB / 0.5077 GB, free: 22.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.4746, allocations: 1.422 kB / 0.5077 GB, free: 22.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4746, allocations: 0 / 0.5077 GB, free: 22.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004348/0.4751, allocations: 1.219 kB / 0.5077 GB, free: 22.07 MB / 382.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.0164/0.4915, allocations: 5.094 MB / 0.5127 GB, free: 20.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.4915, allocations: 12 kB / 0.5127 GB, free: 20.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/0.5019, allocations: 3.183 MB / 0.5158 GB, free: 19.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007075/0.509, allocations: 2.402 MB / 0.5181 GB, free: 19.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002424/0.5093, allocations: 251.3 kB / 0.5184 GB, free: 19.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/0.5105, allocations: 331.7 kB / 0.5187 GB, free: 19.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02261/0.5331, allocations: 12.24 MB / 0.5306 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/0.5333, allocations: 38.52 kB / 0.5307 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005058/0.5338, allocations: 155.1 kB / 0.5308 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004436/0.5382, allocations: 2.844 MB / 0.5336 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01936/0.5576, allocations: 11.13 MB / 0.5445 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06135/0.619, allocations: 40.51 MB / 0.584 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009193/0.6282, allocations: 4.684 MB / 0.5886 GB, free: 7.672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003157/0.6314, allocations: 2.435 MB / 0.591 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001192/0.6326, allocations: 1.319 MB / 0.5923 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.6327, allocations: 57.17 kB / 0.5923 GB, free: 3.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 4.459e-06/0.6327, allocations: 0 / 0.5923 GB, free: 3.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=267): time 0.04294/0.6756, allocations: 18.68 MB / 0.6106 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.6757, allocations: 77.39 kB / 0.6106 GB, free: 0.793 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/0.6809, allocations: 3.172 MB / 0.6137 GB, free: 13.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005508/0.6815, allocations: 61.7 kB / 0.6138 GB, free: 13.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/0.6838, allocations: 3.119 MB / 0.6168 GB, free: 10.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/0.6853, allocations: 0.9676 MB / 0.6178 GB, free: 9.484 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/0.687, allocations: 1.182 MB / 0.6189 GB, free: 8.293 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.6871, allocations: 305.1 kB / 0.6192 GB, free: 7.992 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003409/0.6905, allocations: 2.467 MB / 0.6216 GB, free: 5.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005851/0.6964, allocations: 5.729 MB / 0.6272 GB, free: 14.24 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/0.7072, allocations: 8.989 MB / 0.636 GB, free: 4.129 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.45e-05/0.7073, allocations: 33.09 kB / 0.636 GB, free: 4.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01716/0.7245, allocations: 9.005 MB / 0.6448 GB, free: 11.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.748e-05/0.7246, allocations: 56 kB / 0.6449 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.7247, allocations: 112 kB / 0.645 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002935/0.7277, allocations: 1.056 MB / 0.646 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004975/0.7327, allocations: 1.353 MB / 0.6473 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007744/0.7404, allocations: 5.534 MB / 0.6528 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/0.7451, allocations: 315.8 kB / 0.6531 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/0.7464, allocations: 344 kB / 0.6534 GB, free: 2.785 MB / 494.1 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.004552/0.7509, allocations: 2.416 MB / 0.6557 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006169/0.7515, allocations: 311.9 kB / 0.656 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008846/0.7604, allocations: 5.37 MB / 0.6613 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.993e-05/0.7605, allocations: 47.98 kB / 0.6613 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.7605, allocations: 4 kB / 0.6613 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.7606, allocations: 11.95 kB / 0.6613 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02439/0.785, allocations: 13.02 MB / 0.6741 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.771e-05/0.785, allocations: 16.62 kB / 0.6741 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/0.7869, allocations: 427.5 kB / 0.6745 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002702/0.7896, allocations: 0.8873 MB / 0.6753 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002986/0.7899, allocations: 55.98 kB / 0.6754 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006942/0.7968, allocations: 4.838 MB / 0.6801 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.971e-05/0.7969, allocations: 19.94 kB / 0.6801 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.8094, allocations: 8.015 MB / 0.688 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.8107, allocations: 364.4 kB / 0.6883 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004879/0.8112, allocations: 67.59 kB / 0.6884 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.8125, allocations: 143.8 kB / 0.6885 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/0.8129, allocations: 165.6 kB / 0.6887 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001764/0.8131, allocations: 79.98 kB / 0.6888 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003021/0.8161, allocations: 1.957 MB / 0.6907 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8161, allocations: 3.938 kB / 0.6907 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004527/0.8206, allocations: 1.088 MB / 0.6917 GB, free: 10.9 MB / 0.5294 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.000463/0.8211, allocations: 197.7 kB / 0.6919 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008469/0.8296, allocations: 6.047 MB / 0.6978 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.8296, allocations: 0 / 0.6978 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003117/0.8327, allocations: 2.262 MB / 0.7 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.8354, allocations: 450.2 kB / 0.7005 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2327/1.068, allocations: 11.24 MB / 0.7114 GB, free: 189.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004997/1.073, allocations: 3.702 MB / 0.7151 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004275/1.077, allocations: 2.155 MB / 0.7172 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007705/1.078, allocations: 237.8 kB / 0.7174 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.142e-06/1.078, allocations: 4 kB / 0.7174 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.05688/1.135, allocations: 32.7 MB / 0.7493 GB, free: 162.9 MB / 0.5294 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 -s gbode -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