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.001104/0.001104, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001179/0.00118, allocations: 179.1 kB / 18.71 MB, free: 4.367 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.491/1.491, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.246/0.246, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4199, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01686/0.4368, allocations: 15.01 MB / 0.5336 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.4481, allocations: 4.408 MB / 0.5379 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003928/0.4521, allocations: 80.12 kB / 0.5379 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005013/0.4571, allocations: 2.225 MB / 0.5401 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007359/0.4646, allocations: 2.078 MB / 0.5421 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002218/0.4669, allocations: 0.6065 MB / 0.5427 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009937/0.4768, allocations: 4.291 MB / 0.5469 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005177/0.482, allocations: 3.158 MB / 0.55 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/0.4856, allocations: 1.608 MB / 0.5516 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004242/0.4898, allocations: 2.223 MB / 0.5538 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.4915, allocations: 344 kB / 0.5541 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.4946, allocations: 1.045 MB / 0.5551 GB, free: 6.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002114/0.4968, allocations: 1.995 MB / 0.557 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002604/0.4994, allocations: 2.399 MB / 0.5594 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00788/0.5073, allocations: 7.806 MB / 0.567 GB, free: 10.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.5073, allocations: 0 / 0.567 GB, free: 10.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5073, allocations: 0 / 0.567 GB, free: 10.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001654/0.5075, allocations: 0 / 0.567 GB, free: 10.59 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.009008/0.5165, allocations: 5.092 MB / 0.572 GB, free: 5.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.5166, allocations: 12.03 kB / 0.572 GB, free: 5.418 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01169/0.5283, allocations: 3.188 MB / 0.5751 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007319/0.5356, allocations: 2.413 MB / 0.5775 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003629/0.536, allocations: 250.6 kB / 0.5777 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.5382, allocations: 331.6 kB / 0.578 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02654/0.5648, allocations: 12.23 MB / 0.59 GB, free: 2.418 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002414/0.5651, allocations: 31.66 kB / 0.59 GB, free: 2.387 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001861/0.5669, allocations: 159.8 kB / 0.5901 GB, free: 2.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005712/0.5727, allocations: 2.848 MB / 0.5929 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02572/0.5984, allocations: 11.12 MB / 0.6038 GB, free: 4.238 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0685/0.667, allocations: 40.51 MB / 0.6434 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.6771, allocations: 4.694 MB / 0.6479 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003724/0.6808, allocations: 2.431 MB / 0.6503 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001302/0.6822, allocations: 1.315 MB / 0.6516 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.6822, allocations: 56.5 kB / 0.6517 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 5.821e-06/0.6823, allocations: 0 / 0.6517 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04917/0.7314, allocations: 18.69 MB / 0.6699 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.7315, allocations: 73.41 kB / 0.67 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/0.7374, allocations: 3.172 MB / 0.6731 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004588/0.7378, allocations: 57.7 kB / 0.6731 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002525/0.7404, allocations: 3.114 MB / 0.6762 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001432/0.7418, allocations: 0.9713 MB / 0.6771 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002673/0.7445, allocations: 1.194 MB / 0.6783 GB, free: 6.203 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.7446, allocations: 305.1 kB / 0.6786 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004423/0.7491, allocations: 2.463 MB / 0.681 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007494/0.7566, allocations: 5.735 MB / 0.6866 GB, free: 12.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/0.7696, allocations: 8.98 MB / 0.6953 GB, free: 1.516 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/0.7697, allocations: 36 kB / 0.6954 GB, free: 1.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01862/0.7883, allocations: 9 MB / 0.7042 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/0.7885, allocations: 56 kB / 0.7042 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002394/0.7888, allocations: 112 kB / 0.7043 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/0.7922, allocations: 1.051 MB / 0.7054 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004911/0.7971, allocations: 1.353 MB / 0.7067 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008247/0.8054, allocations: 5.537 MB / 0.7121 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00394/0.8094, allocations: 323.8 kB / 0.7124 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/0.8104, allocations: 339.9 kB / 0.7127 GB, free: 15.57 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.005115/0.8156, allocations: 2.417 MB / 0.7151 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007383/0.8163, allocations: 312 kB / 0.7154 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/0.8266, allocations: 5.368 MB / 0.7206 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-05/0.8267, allocations: 51.97 kB / 0.7207 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.8267, allocations: 4 kB / 0.7207 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.897e-05/0.8267, allocations: 11.95 kB / 0.7207 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3871/1.214, allocations: 13.03 MB / 0.7334 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.208e-05/1.214, allocations: 10.09 kB / 0.7334 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/1.216, allocations: 423.9 kB / 0.7338 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002965/1.219, allocations: 0.8925 MB / 0.7347 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003773/1.219, allocations: 55.3 kB / 0.7347 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006697/1.226, allocations: 4.829 MB / 0.7395 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-05/1.226, allocations: 17.12 kB / 0.7395 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/1.242, allocations: 8.015 MB / 0.7473 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.244, allocations: 360.6 kB / 0.7476 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/1.244, allocations: 53.67 kB / 0.7477 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/1.245, allocations: 154.3 kB / 0.7478 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/1.246, allocations: 168.3 kB / 0.748 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/1.246, allocations: 81.02 kB / 0.7481 GB, free: 173 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002498/1.248, allocations: 1.958 MB / 0.75 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.249, allocations: 0 / 0.75 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004403/1.253, allocations: 1.084 MB / 0.7511 GB, free: 172.2 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.0005308/1.253, allocations: 200 kB / 0.7512 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00797/1.261, allocations: 6.047 MB / 0.7571 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/1.261, allocations: 0 / 0.7571 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002893/1.264, allocations: 2.259 MB / 0.7594 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.002724/1.267, allocations: 459.8 kB / 0.7598 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0199/1.287, allocations: 11.25 MB / 0.7708 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004245/1.291, allocations: 3.712 MB / 0.7744 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004585/1.296, allocations: 2.153 MB / 0.7765 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000734/1.297, allocations: 235.4 kB / 0.7767 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.282e-06/1.297, allocations: 7.828 kB / 0.7767 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.06/1.357, allocations: 34.68 MB / 0.8106 GB, free: 117.9 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/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